]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-112328: [Enum] Make some private attributes public. (GH-112514)
authorEthan Furman <ethan@stoneleaf.us>
Tue, 5 Dec 2023 16:27:36 +0000 (08:27 -0800)
committerGitHub <noreply@github.com>
Tue, 5 Dec 2023 16:27:36 +0000 (08:27 -0800)
commitde6bca956432cc852a4a41e2a2cee9cdacd19f35
tree148193ac3a0e6275461b4731e22279561ff90893
parent563ccded6e83bfdd8c5622663c4edb679e96e08b
gh-112328: [Enum] Make some private attributes public. (GH-112514)

* [Enum] Make some private attributes public.

- ``_EnumDict`` --> ``EnumDict``
- ``EnumDict._member_names`` --> ``EnumDict.member_names``
- ``Enum._add_alias_``
- ``Enum._add_value_alias_``

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Doc/howto/enum.rst
Doc/library/enum.rst
Lib/enum.py
Lib/test/test_enum.py
Misc/NEWS.d/next/Library/2023-11-28-20-47-39.gh-issue-112328.Z2AxEY.rst [new file with mode: 0644]