[Python-Dev] PEP 460 reboot
Ethan Furman
ethan at stoneleaf.us
Mon Jan 13 02:27:12 CET 2014
More information about the Python-Dev mailing list
Mon Jan 13 02:27:12 CET 2014
- Previous message: [Python-Dev] PEP 460 reboot
- Next message: [Python-Dev] PEP 460 reboot
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 01/12/2014 04:47 PM, Guido van Rossum wrote: > > %s seems the trickiest: I think with a bytes argument it should just > insert those bytes (and the padding modifiers should work too), and > for other types it should probably work like %a, so that it works as > expected for numeric values, and with a string argument it will return > the ascii()-variant of its repr(). Examples: > > b'%s' % 42 == b'42' > b'%s' % 'x' == b"'x'" (i.e. the three-byte string containing an 'x' > enclosed in single quotes) I'm not sure about the quotes. Would anyone ever actually want those in the byte stream? -- ~Ethan~
- Previous message: [Python-Dev] PEP 460 reboot
- Next message: [Python-Dev] PEP 460 reboot
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list