[docs] Code, test, and doc review for PEP-0435 Enum (issue 17947)

ethan at stoneleaf.us ethan at stoneleaf.us
Tue May 14 21:04:03 CEST 2013


http://bugs.python.org/review/17947/diff/8131/Lib/enum.py
File Lib/enum.py (right):

http://bugs.python.org/review/17947/diff/8131/Lib/enum.py#newcode103
Lib/enum.py:103: enum_class = type.__new__(metacls, cls, bases,
classdict)
On 2013/05/14 20:40:09, isoschiz wrote:
> 
> It is clearly not desirable to not let Foo have a go, just because Baz
got in
> the way. Without super() in this line of EnumMeta, you have the same
possibility
> of breaking some folks using the metaclass, if EnumMeta is passed as
the first
> base.

Ah, now I understand.  Thank you for taking the time to explain!  Change
made.

Of course, now I have to make a test with another metaclass mixed in...
*sigh*.  ;)

http://bugs.python.org/review/17947/


More information about the docs mailing list