Message226392
There is a small inconvenience in the ``enum`` module.
When I subclass ``enum.Enum`` and redefine the ``value`` dynamic attribute, the aliasing behavior doesn't work correctly, because ``member.value`` is used in some places instead of ``member._value_``.
I attached a patch where I fixed all these places. This causes no harm to the internal working, but makes subclassing behave correctly. |
|
Date |
User |
Action |
Args |
2014-09-05 00:50:11 | kissgyorgy | set | recipients:
+ kissgyorgy |
2014-09-05 00:50:11 | kissgyorgy | set | messageid: <1409878211.89.0.422808973529.issue22339@psf.upfronthosting.co.za> |
2014-09-05 00:50:11 | kissgyorgy | link | issue22339 messages |
2014-09-05 00:50:10 | kissgyorgy | create | |
|