New submission from Matthias Urlichs <[email protected]>:
While checking out the Enum implementation I noticed that this code snippet
results in an IndexError.
I have no idea which error or warning (if any) this should generate instead.
Opinions?
import enum
class duh(enum.Enum):
_duh__ = "moo"
----------
components: Library (Lib)
messages: 390301
nosy: smurfix
priority: normal
severity: normal
status: open
title: enum: Adding a var named _anything__ raises IndexError
type: behavior
versions: Python 3.10
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue43744>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com