FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-45535: [Enum] include special dunders in dir() by ethanfurman · Pull Request #30677 · python/cpython · GitHub

/ cpython Public

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

bpo-45535: [Enum] include special dunders in dir()#30677
ethanfurman merged 1 commit into
python:mainfrom
ethanfurman:enum-fix_dir

Conversation

ethanfurman commented Jan 18, 2022
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

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

  • __contains__
  • __getitem__
  • __iter__
  • __len__
  • __members__

https://bugs.python.org/issue45535

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL