Re: [Python-Dev] PEP 467: Minor API improvements to bytes, bytearray, and memoryview

2016年7月16日 17:05:51 -0700

On 06/07/2016 10:42 PM, Serhiy Storchaka wrote:
On 07.06.16 23:28, Ethan Furman wrote:
* Add ``bytes.iterbytes``, ``bytearray.iterbytes`` and
 ``memoryview.iterbytes`` alternative iterators
"Byte" is an alias to "octet" (8-bit integer) in modern terminology.
Maybe so, but not, to my knowledge, in Python terminology.
Iterating bytes and bytearray already produce bytes.
No, it produces integers:
for b in b'abcid':
... print(b)
...
97
98
99
105
100
--
~Ethan~
_______________________________________________
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