Re: [Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 2

2014年2月23日 03:36:25 -0800

On 2014年2月22日 17:56:50 -0800
Ethan Furman <[email protected]> wrote:
> 
> ``%a`` will call :func:``ascii()`` on the interpolated value's 
> :func:``repr()``.
> This is intended as a debugging aid, rather than something that should be used
> in production. Non-ascii values will be encoded to either ``\xnn`` or 
> ``\unnnn``
> representation.
Why is "%a" here? I don't remember: was this discussed before?
"Intended as a debugging aid" sounds like a weak justification to me.
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