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

Conversation

tonoplast
Copy link

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.

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.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant