[issue40098] dir() does not return the list of valid attributes for the object
Guido van Rossum
report at bugs.python.org
Tue Mar 31 16:40:26 EDT 2020
Guido van Rossum <guido at python.org> added the comment:
Vedran, please stay on topic for this issue.
FWIW I agree that it would be best if dir() showed only those dunders that are significant. E.g. __eq__ should only be shown if it is overridden by a subclass.
Serhiy did you see my feedback on 3 and 4?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40098>
_______________________________________
More information about the Python-bugs-list
mailing list