Ethan Furman writes:

 > I counted roughly 25 Enums in the stdlib at this point, and only two of 
 > them have modified reprs or strs; and one of those is an internal class. 
 >   It's worth noting that two others are buggy -- one is being fancy with 
 > values and didn't get the custom __new__ correct, they other left in 
 > some commas when converting from it's original data type.

+1 for consistency and documentation of guidelines.  I have no opinion
on what, if anything, to change to get consistency in the stdlib
implementations.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/OKL77FRNNDS4NBMEGNZJHD5GBGGA5RIM/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to