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 Antony.Lee
Recipients Antony.Lee, bup, ethan.furman, josh.r
Date 2018-09-22.08:39:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> I agree though that adding an update method would be nice though and can be done in just a few lines of code.

Again, this can be done just be inheriting the methods from MutableMapping.

In fact even now one can just write

    class E(Enum): MutableMapping.update(locals(), {"a": 1})

and this will do the "right" thing but that's hardly an obvious way to do it...
Date User Action Args
2018-09-22 08:39:30Antony.Leesetrecipients: + Antony.Lee, ethan.furman, josh.r, bup
2018-09-22 08:39:30Antony.Leesetmessageid: <>
2018-09-22 08:39:30Antony.Leelinkissue34750 messages
2018-09-22 08:39:30Antony.Leecreate