Re: [Python-Dev] PEP 461 - Adding % and {} formatting to bytes

2014年1月14日 12:59:21 -0800

On 2014年1月14日 11:56:25 -0800
Ethan Furman <[email protected]> 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.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to