This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author typish
Recipients typish
Date 2019-10-05.11:56:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570276596.73.0.237929240562.issue38375@roundup.psfhosted.org>
In-reply-to
Content
```
from enum import Enum

class T(Enum):
  TEST = 1

print(T["TEST"])

class S(Enum):
  TEST = lambda a: a

print(S["TEST"])
```
fails with `KeyError: 'TEST'` on the last line.
History
Date User Action Args
2019-10-05 11:56:36typishsetrecipients: + typish
2019-10-05 11:56:36typishsetmessageid: <1570276596.73.0.237929240562.issue38375@roundup.psfhosted.org>
2019-10-05 11:56:36typishlinkissue38375 messages
2019-10-05 11:56:36typishcreate