[Python-Dev] PEP 467: Minor API improvements for bytes & bytearray
Antoine Pitrou
antoine at python.org
Mon Aug 18 01:23:00 CEST 2014
Le 16/08/2014 01:17, Nick Coghlan a écrit :
>
> * Deprecate passing single integer values to ``bytes`` and ``bytearray``
I'm neutral. Ideally we wouldn't have done that mistake at the beginning.
> * Add ``bytes.zeros`` and ``bytearray.zeros`` alternative constructors
> * Add ``bytes.byte`` and ``bytearray.byte`` alternative constructors
> * Add ``bytes.iterbytes``, ``bytearray.iterbytes`` and
> ``memoryview.iterbytes`` alternative iterators
+0.5. "iterbytes" isn't really great as a name.
Regards
Antoine.
More information about the Python-Dev
mailing list