Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
ethanfurman merged 1 commit into
python:mainpython/cpython:mainfrom
ethanfurman:enum-fix_direthanfurman/cpython:enum-fix_dirCopy head branch name to clipboard
Jan 18, 2022
Merged

bpo-45535: [Enum] include special dunders in dir()#30677
ethanfurman merged 1 commit into
python:mainpython/cpython:mainfrom
ethanfurman:enum-fix_direthanfurman/cpython:enum-fix_dirCopy head branch name to clipboard

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.