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

Barry Warsaw barry at python.org
Wed Jun 8 10:25:54 EDT 2016


On Jun 08, 2016, at 02:01 AM, Martin Panter wrote:

>Bytes.byte() is a great idea. But what’s the point or use case of
>bytearray.byte(), a mutable array of one pre-defined byte?

I like Bytes.byte() too.  I would guess you'd want the same method on
bytearray for duck typing APIs.

-Barry


More information about the Python-Dev mailing list