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 <1537605570.07.0.956365154283.issue34750@psf.upfronthosting.co.za>
In-reply-to
Content
> 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...
History
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: <1537605570.07.0.956365154283.issue34750@psf.upfronthosting.co.za>
2018-09-22 08:39:30Antony.Leelinkissue34750 messages
2018-09-22 08:39:30Antony.Leecreate