[Python-Dev] PEP 461 - Adding % and {} formatting to bytes (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Tue Jan 14 21:57:30 CET 2014
- Previous message: [Python-Dev] PEP 461 updates
- Next message: [Python-Dev] PEP 461 - Adding % and {} formatting to bytes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 14 Jan 2014 11:56:25 -0800 Ethan Furman <ethan at stoneleaf.us> wrote:
%s, because it is the most general, has the most convoluted resolution: - input type is bytes? pass it straight through
It should try to get a Py_buffer instead.
- input type is numeric? use its xxx [1] [2] method and ascii-encode it (strictly)
What is the definition of "numeric"?
Regards
Antoine.
- Previous message: [Python-Dev] PEP 461 updates
- Next message: [Python-Dev] PEP 461 - Adding % and {} formatting to bytes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]