[Python-checkins] [3.10] bpo-44174: [Enum] add reference to name mangling (GH-29117)

ethanfurman webhook-mailer at python.org
Thu Oct 21 12:50:42 EDT 2021


https://github.com/python/cpython/commit/828722aca4ccba893f6b2e8c1d41fd74fd6e208d
commit: 828722aca4ccba893f6b2e8c1d41fd74fd6e208d
branch: 3.10
author: Ethan Furman <ethan at stoneleaf.us>
committer: ethanfurman <ethan at stoneleaf.us>
date: 2021-10-21T09:50:29-07:00
summary:

[3.10] bpo-44174: [Enum] add reference to name mangling (GH-29117)

files:
M Doc/library/enum.rst

diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index b354a111a3ce73..eb5ffd0c5d51c5 100644
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -1125,9 +1125,9 @@ and raise an error if the two do not match::
 _Private__names
 """""""""""""""
 
-Private names will be normal attributes in Python 3.11 instead of either an error
-or a member (depending on if the name ends with an underscore). Using these names
-in 3.10 will issue a :exc:`DeprecationWarning`.
+:ref:`Private names <private-name-mangling>` will be normal attributes in Python
+3.11 instead of either an error or a member (depending on if the name ends with
+an underscore). Using these names in 3.10 will issue a :exc:`DeprecationWarning`.
 
 
 ``Enum`` member type



More information about the Python-checkins mailing list