[Python-Dev] format, int, and IntEnum

Ethan Furman ethan at stoneleaf.us
Thu Aug 15 17:21:46 CEST 2013


Given that the !r and !s format codes can be used to get the repr and str of an IntEnum, would it be acceptable to have 
IntEnum's __format__ simply pass through to int's __format__?  And likewise with all mix-in classes?

--
~Ethan~


More information about the Python-Dev mailing list