summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2020-12-10 01:12:11 (GMT)
committerGitHub <noreply@github.com>2020-12-10 01:12:11 (GMT)
commit7cf0aad96d1d20f07d7f0e374885f327c2d5ff27 (patch)
treebabeef9e57bf228cf1714462dfdf7ca1bce97870 /Doc/library
parent6bd94de168b58ac9358277ed6f200490ab26c174 (diff)
downloadcpython-7cf0aad96d1d20f07d7f0e374885f327c2d5ff27.zip
cpython-7cf0aad96d1d20f07d7f0e374885f327c2d5ff27.tar.gz
cpython-7cf0aad96d1d20f07d7f0e374885f327c2d5ff27.tar.bz2
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
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/enum.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index 118002b..a9584b9 100644
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -1164,6 +1164,15 @@ and raise an error if the two do not match::
In Python 2 code the :attr:`_order_` attribute is necessary as definition
order is lost before it can be recorded.
+
+_Private__names
+"""""""""""""""
+
+Private names are not converted to Enum members, but remain normal attributes.
+
+.. versionchanged:: 3.10
+
+
``Enum`` member type
""""""""""""""""""""