Skip to content

bpo-45535: [Enum] include special dunders in dir() #30677

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

Merged
merged 1 commit into from
Jan 18, 2022

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