]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42517: [Enum] do not convert private names into members (GH-23722)
authorEthan Furman <ethan@stoneleaf.us>
Thu, 10 Dec 2020 01:12:11 +0000 (17:12 -0800)
committerGitHub <noreply@github.com>
Thu, 10 Dec 2020 01:12:11 +0000 (17:12 -0800)
commit7cf0aad96d1d20f07d7f0e374885f327c2d5ff27
treebabeef9e57bf228cf1714462dfdf7ca1bce97870
parent6bd94de168b58ac9358277ed6f200490ab26c174
bpo-42517: [Enum] do not convert private names into members (GH-23722)

private names, such as `_Color__hue` and `_Color__hue_` are now normal attributes, and do not become members nor raise exceptions
Doc/library/enum.rst
Lib/enum.py
Lib/test/test_enum.py
Misc/NEWS.d/next/Library/2020-12-09-10-59-16.bpo-42517.FKEVcZ.rst [new file with mode: 0644]