[Python-Dev] format and int subclasses (Was: format, int, and IntEnum) (original) (raw)

Serhiy Storchaka storchaka at gmail.com
Thu Aug 15 09:07:35 CEST 2013


15.08.13 06:23, Eli Bendersky написав(ла):

Yes, the problem here is certainly not IntEnum - specific; it's just that IntEnum is the first "for real" use case of subclassing 'int' in the stdlib.

Even not the first.

'{}'.format(True) 'True'

'{:10}'.format(True) ' 1'



More information about the Python-Dev mailing list