]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45535: [Enum] include special dunders in dir() (GH-30677)
authorEthan Furman <ethan@stoneleaf.us>
Tue, 18 Jan 2022 23:13:13 +0000 (15:13 -0800)
committerGitHub <noreply@github.com>
Tue, 18 Jan 2022 23:13:13 +0000 (15:13 -0800)
commit7c0914d35eaaab2f323260ba5fe8884732533888
treec5d3767758a95f8c2e00ad27f0f276bb7445f4b9
parent3852269b91fcc8ee668cd876b3669eba6da5b1ac
bpo-45535: [Enum] include special dunders in dir() (GH-30677)

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

- `__contains__`
- `__getitem__`
- `__iter__`
- `__len__`
- `__members__`
Lib/enum.py
Lib/test/test_enum.py