Re: [Python-Dev] PEP 467: Minor API improvements for bytes & bytearray

2014年8月18日 06:53:23 -0700

On Aug 17, 2014, at 09:39 PM, Antoine Pitrou wrote:
>> need for a special case for a single byte. We already have a perfectly
>> good spelling:
>> NUL = bytes([0])
>
>That is actually a very cumbersome spelling. Why should I first create a
>one-element list in order to create a one-byte bytes object?
I feel the same way every time I have to write `set(['foo'])`.
-Barry
_______________________________________________
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