[issue22339] Incorrect behavior when subclassing enum.Enum

Kiss György report at bugs.python.org
Sat Sep 6 07:03:39 CEST 2014


Kiss György added the comment:

Oh, wow. I never really understood what _find_new_ did, now I do.

> I'm not sure what you are trying to accomplish there.
Exactly that, I'm just not as good. Oh well at least I found a bug! :) Thanks for the enlightenment!

If the patch goes in, I also would like one more minor change. On line 457, the missing value is represented as simple str(). In case of user defined types, it would make debugging easier if repr() would be used instead. I attached the patch.

----------
Added file: http://bugs.python.org/file36554/enum.patch2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22339>
_______________________________________


More information about the Python-bugs-list mailing list