Antony Lee <anntzer....@gmail.com> added the comment:
> 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... ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34750> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com