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/2014-August/135834.html below:

Minor API improvements for bytes & bytearray

[Python-Dev] PEP 467: Minor API improvements for bytes & bytearray [Python-Dev] PEP 467: Minor API improvements for bytes & bytearrayAntoine Pitrou antoine at python.org
Mon Aug 18 00:33:01 CEST 2014
Le 17/08/2014 13:07, Raymond Hettinger a écrit :
>
> FWIW, I've been teaching Python full time for three years.  I cover the
> use of bytearray(n) in my classes and not a single person out of 3000+
> engineers have had a problem with it.

This is less about bytearray() than bytes(), IMO. bytearray() is 
sufficiently specialized that only experienced people will encounter it.

And while preallocating a bytearray of a certain size makes sense, it's 
completely pointless for a bytes object.

Regards

Antoine.


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