On 26/04/2013 00:59, Glenn Linderman wrote:
On 4/25/2013 3:23 PM, Barry Warsaw wrote:
My point is, "days of the week" has a natural ordering, so why wouldn't you
use IntEnum for that?  Problem solved.

While the ordering is natural, some implementations start from 0, some
start from 1, and on the naming side, some start from Sunday, and some
start from Monday. So there are lots of opportunities for the numbers
vary, and having easy conversions to int which expose those numbers and
allow comparisons to integers, is adding problems, not solving them.

[snip]
But there _is_ an ordering problem, in that the days wrap around.
_______________________________________________
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