This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kissgyorgy
Recipients kissgyorgy
Date 2014-09-05.00:50:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409878211.89.0.422808973529.issue22339@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-09-05 00:50:11kissgyorgysetrecipients: + kissgyorgy
2014-09-05 00:50:11kissgyorgysetmessageid: <1409878211.89.0.422808973529.issue22339@psf.upfronthosting.co.za>
2014-09-05 00:50:11kissgyorgylinkissue22339 messages
2014-09-05 00:50:10kissgyorgycreate