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

"See ReasonCode.names": did not work #845

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

Conversation

smurfix
Copy link

@smurfix smurfix commented May 22, 2024

As this class attribute is actually useful,
make the code fit the comment.

This also saves a bit of time and memory because the map was recreated for each ReasonCode instance.

As this class attribute is actually useful,
make the code fit the comment.
Thus (a) "foo in dict.keys()" is better written as "foo in dict"
and (b) "print(foo.keys())" won_t do what you want
that's what a single-underscore _methodName is intended for
instead of scanning it
@smurfix
Copy link
Author

smurfix commented May 28, 2024

I added hopefully-uncontroversial fixes for a couple of other issues.

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.

None yet

1 participant