Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changing some 'is' to '==' #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Commits on Mar 8, 2023

  1. changing some 'is' to '=='

    There are many parameter inputs. Presumably one would create a 'config' file, and if the config file has something like:
    `cfg = {mcp : 'maxstat'}`
    
    and when you use in code, it does not work because 'is' is not the same as '==' .
    `cfg.get('mcp')` will show 'maxstat' but `mcp = cfg.get('mcp')` will throw an error since it is not comparing the string.
    tonoplast authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    ca9e343 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2023

  1. changing some 'is' to '=='

    There are many parameter inputs. Presumably one would create a 'config' file, and if the config file has something like:
    `cfg = {mcp : 'maxstat'}`
    
    and when you use in code, it does not work because 'is' is not the same as '==' .
    `cfg.get('mcp')` will show 'maxstat' but `mcp = cfg.get('mcp')` will throw an error since it is not comparing the string.
    tonoplast authored Mar 9, 2023
    Configuration menu
    Copy the full SHA
    7965a29 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f48ea67 View commit details
    Browse the repository at this point in the history