Message326085
> 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:30 | Antony.Lee | set | recipients:
+ Antony.Lee, ethan.furman, josh.r, bup |
2018-09-22 08:39:30 | Antony.Lee | set | messageid: <1537605570.07.0.956365154283.issue34750@psf.upfronthosting.co.za> |
2018-09-22 08:39:30 | Antony.Lee | link | issue34750 messages |
2018-09-22 08:39:30 | Antony.Lee | create | |
|