[issue26988] Add AutoNumberedEnum to stdlib

Barry A. Warsaw report at bugs.python.org
Sat Jul 9 12:04:43 EDT 2016


Barry A. Warsaw added the comment:

On Jul 09, 2016, at 03:20 PM, Ethan Furman wrote:

>As far as I can tell there is only one "good" way around this:
>
>- store any names you don't want auto-numbered into an `_ignore_`
>  attribute (this only needs to be global and built-in names that
>  are used before the first method is defined)

Seems reasonable, though why not a dunder, e.g. __ignore__?

>    _ignore_ = 'Period i'

Why space separated names inside a string instead of a sequence of strings?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26988>
_______________________________________


More information about the Python-bugs-list mailing list