On 05/04/2013 08:11 PM, Tim Delaney wrote:

  I've been able to achieve the auto-numbering without relying on the internal 
implementation at all (with a
limitation), with a single change to enum_type.__new__. My previous patch was 
slightly wrong - fix below as well. All
existing tests pass. BTW, for mix-ins it's required that they have __slots__ = 
() - might want to mention that in the PEP.

What happens without `__slots__ = ()` ?

--
~Ethan~
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to