Skip to content

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

Merged
ethanfurman merged 1 commit into
python:mainfrom
ethanfurman:enum-fix_dir
Jan 18, 2022
Merged

ethanfurman merged 1 commit into
python:mainfrom
ethanfurman:enum-fix_dir

Conversation

@ethanfurman

@ethanfurman ethanfurman commented Jan 18, 2022 •

Copy link
Copy Markdown
Member

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

  • __contains__
  • __getitem__
  • __iter__
  • __len__
  • __members__

https://bugs.python.org/issue45535

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants