[Python-Dev] PEP 460: allowing %d and %f and mojibake
Serhiy Storchaka
storchaka at gmail.com
Sat Jan 11 22:01:05 CET 2014
More information about the Python-Dev mailing list
Sat Jan 11 22:01:05 CET 2014
- Previous message: [Python-Dev] PEP 460: allowing %d and %f and mojibake
- Next message: [Python-Dev] PEP 460: allowing %d and %f and mojibake
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
11.01.14 21:40, Kristján Valur Jónsson написав(ла): > How about a compromise? > Personally, I think adding the full complement of integer/float formatting to bytes is a bit over the top. > How about just supporting two format specifiers? > %b : interpolate a bytes object. If it doesn't have the buffer interface, error. > %s : interpolate a str object, encoded to ASCII using 'strict' conversion. %b is not supported in Python 2.7. And compatibility with Python 2.7 is only the purpose of this feature.
- Previous message: [Python-Dev] PEP 460: allowing %d and %f and mojibake
- Next message: [Python-Dev] PEP 460: allowing %d and %f and mojibake
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list