A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-July/145627.html below:

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

[Python-Dev] PEP 467: Minor API improvements to bytes, bytearray, and memoryviewEthan Furman ethan at stoneleaf.us
Sat Jul 16 20:03:13 EDT 2016
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~
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4