Skip to content

Conversation

ethanfurman
Copy link
Member

@ethanfurman ethanfurman commented Jan 18, 2022

Include the __dunders__ in dir() that make Enum special:

  • __contains__
  • __getitem__
  • __iter__
  • __len__
  • __members__

https://bugs.python.org/issue45535

@ethanfurman ethanfurman changed the title [Enum] include special dunders in dir() bpo-45535: [Enum] include special dunders in dir() Jan 18, 2022
@ethanfurman ethanfurman merged commit 7c0914d into python:main Jan 18, 2022
@ethanfurman ethanfurman deleted the enum-fix_dir branch November 23, 2022 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants