New submission from Kiss György:

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.

----------
components: Library (Lib)
files: enum.patch
keywords: patch
messages: 226392
nosy: Walkman
priority: normal
severity: normal
status: open
title: Incorrect behavior when subclassing enum.Enum
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file36543/enum.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22339>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to