On 22 Apr 2013 07:50, "Barry Warsaw" <[email protected]> wrote:
>
> On Apr 20, 2013, at 07:10 PM, R. David Murray wrote:
>
> >It seems strange to limit a new Python3 feature to the Python2 feature
> >set. Just saying :)
>
> For a critical feature sure, but I don't put __repr__ or enum item
iteration
> order in that category. There's no need for gratuitous incompatibility
> either, and attribute name order is just fine.
Iteration order matters a lot if you don't want people complaining about
enums being broken:
class Days(enum.Enum):
Monday = 1
Tuesday = 2
Wednesday = 3
Thursday = 4
Friday = 5
Saturday = 6
Sunday = 7
Cheers,
Nick.
>
> -Barry
> _______________________________________________
> Python-Dev mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
http://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com