New submission from Ethan Furman <et...@stoneleaf.us>:

Currently, private names such as '__location' will get both name mangled and 
converted into an attribute, while `__location_` will get mangled, but not 
converted as the final name is sundered (e.g. `_MyEnum__location_`).

Just in case anyone is actually using private name Enum members we'll deprecate 
in 3.10, and in 3.11 private names will:

- not be converted
- not raise sunder errors

----------
assignee: ethan.furman
messages: 382200
nosy: barry, eli.bendersky, ethan.furman
priority: normal
severity: normal
stage: needs patch
status: open
title: Enum: do not convert private names into members
type: behavior
versions: Python 3.10

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42517>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to