Ethan Furman <[email protected]> added the comment:
`locals()` returns the dictionary being used (an _EnumDict) and direct assignment uses the `__setitem__` method, which has been overridden -- and it is the only one; so `update()`, etc., still have normal dict meanings and not Enum ones. Next step: compile list of all methods that _EnumDict should override. Or just say it's not supported. Antony, can you give a more detailed use-case? Meaning an actual example, please. ---------- assignee: -> ethan.furman nosy: +ethan.furman versions: +Python 3.8 -Python 3.7 _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue34750> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
