[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
- Previous message: [Python-Dev] format and int subclasses (Was: format, int, and IntEnum)
- Next message: [Python-Dev] format, int, and IntEnum
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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'
- Previous message: [Python-Dev] format and int subclasses (Was: format, int, and IntEnum)
- Next message: [Python-Dev] format, int, and IntEnum
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]