Find key from only its attributes #2932
Merged
Conversation
fc47ff0
to
e544f65
At 'enum.py' 223 line, there is the code to check `member_type` contains some methods. But it was fixed to find attribute from base types, in RustPython#2932. So it seems appeared. ``` if not any(m in member_type.__dict__ for m in methods): ```
8b83124
to
91734d4
91734d4
to
3b744c9
youknowone
reviewed
Aug 23, 2021
3b744c9
to
0548fa1
youknowone
approved these changes
Aug 23, 2021
youknowone
approved these changes
Aug 23, 2021
eldpswp99
added a commit
to eldpswp99/RustPython
that referenced
this issue
Sep 5, 2021
At 'enum.py' 223 line, there is the code to check `member_type` contains some methods. But it was fixed to find attribute from base types, in RustPython#2932. So it seems appeared. ``` if not any(m in member_type.__dict__ for m in methods): ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Overview
Currently, there is a bug to find a key from itself and the base types not only its attributes. If there was user defined class named
A,"__setattr__" in A.__dict__returnsTruebecauseobjecthas__setattr__thoughAclass doesn't.RustPython
CPython 3.8
The text was updated successfully, but these errors were encountered: