On 2 September 2016 at 17:54, Koos Zevenhoven <[email protected]> wrote: > On Thu, Sep 1, 2016 at 10:36 PM, Ethan Furman <[email protected]> wrote: >> * Deprecate passing single integer values to ``bytes`` and ``bytearray`` >> * Add ``bytes.fromsize`` and ``bytearray.fromsize`` alternative >> constructors >> * Add ``bytes.fromord`` and ``bytearray.fromord`` alternative constructors >> * Add ``bytes.getbyte`` and ``bytearray.getbyte`` byte retrieval methods >> * Add ``bytes.iterbytes`` and ``bytearray.iterbytes`` alternative >> iterators > > I wonder if from_something with an underscore is more consistent (according > to a quick search perhaps yes).
That would not be too inconsistent with the sister constructor bytes.fromhex(). _______________________________________________ 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
