You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unclear meaning of _Private__names in enum docs. #88340
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2021-10-21.18:33:16.931>created_at=<Date2021-05-19.03:27:49.970>labels= ['easy', '3.11', '3.9', '3.10', 'docs']
title='Unclear meaning of _Private__names in enum docs.'updated_at=<Date2021-10-21.18:33:16.931>user='https://github.com/gpshead'
Private names will be normal attributes in Python 3.10 instead of either an error or a member (depending on if the name ends with an underscore). Using these names in 3.9 will issue a DeprecationWarning.
"""
It isn't clear from this documentation what is meant by "private names". Please expand on this to be explicit about what name pattern is being described.
Activity
gpshead commentedon May 19, 2021
https://docs.python.org/3/library/enum.html#private-names
"""
_Private__names
Private names will be normal attributes in Python 3.10 instead of either an error or a member (depending on if the name ends with an underscore). Using these names in 3.9 will issue a DeprecationWarning.
"""
It isn't clear from this documentation what is meant by "private names". Please expand on this to be explicit about what name pattern is being described.
Fidget-Spinner commentedon May 19, 2021
I think linking to this part of the docs may help https://docs.python.org/3/reference/expressions.html#atom-identifiers
There's also already a label to reference to, so
the sentence could start with :ref:`Private names <private-name-mangling>`.
ethanfurman commentedon May 19, 2021
Looks good. Patches welcome. :-)
joeriddles commentedon Oct 20, 2021
_Private__names seems to no longer exist in the Python 3.11 documentation.
https://docs.python.org/3.11/library/enum.html#private-names
It appears to have been removed in this PR https://github.com/python/cpython/pull/23748/files
Should this issue be updated to remove Python 3.11 from the Versions?
ethanfurman commentedon Oct 20, 2021
It has been moved to the tutorial (links are at the top of the Enum page).
ethanfurman commentedon Oct 21, 2021
New changeset 7c4d961 by Ethan Furman in branch 'main':
bpo-44174: [Enum] add reference to name mangling (GH-29116)
7c4d961
ethanfurman commentedon Oct 21, 2021
New changeset 828722a by Ethan Furman in branch '3.10':
[3.10] bpo-44174: [Enum] add reference to name mangling (GH-29117)
828722a
ethanfurman commentedon Oct 21, 2021
New changeset e628700 by Ethan Furman in branch '3.9':
[3.9] bpo-44174: [Enum] add name-mangling reference (GH-29128)
e628700