Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
Closed
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
>>>fromenumimportEnum>>>classColor(Enum): ... RED="red" ... 3.11
>>>Color.__getattr__("RED") <Color.RED: 'red'>3.12b4
>>>Color.__getattr__("RED") Traceback (mostrecentcalllast): File"<stdin>", line1, in<module>AttributeError: typeobject'Color'hasnoattribute'__getattr__'. Didyoumean: '__getitem__'?I see that __getattr__ is documented, so I would have expected either a deprecation notice or an entry in What's New for Python 3.12.
Linked PRs
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Done