[Python-Dev] PEP 435 - requesting pronouncement (original) (raw)

Tim Delaney timothy.c.delaney at gmail.com
Sun May 5 05:34:48 CEST 2013


On 5 May 2013 13:32, Ethan Furman <ethan at stoneleaf.us> wrote:

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 enumtype.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_ = () ?

Traceback (most recent call last): File "D:\Development\ref435\ref435.py", line 311, in class AutoIntEnum(AutoInt, IntEnum): File "D:\Development\ref435\ref435.py", line 138, in new enum_class = type.new(metacls, cls, bases, classdict) TypeError: multiple bases have instance lay-out conflict

Tim Delaney -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20130505/f4dd2f52/attachment.html>



More information about the Python-Dev mailing list