[Python-ideas] Fixing the Python 3 bytes constructor

Alexander Heger python at 2sn.net
Fri Mar 28 13:06:28 CET 2014


>> +1 on bytearray.allnull, with a mild preference for spelling it "zeroes"
>> instead.
>
> If I could consistently remember whether to include the "e" or not,
> "zeroes" would be my preference as well, but almost every time I go to
> type it, I have to pause...

in Numpy a similar routine is

In [1]: np.zeros_like
Out[1]: <function numpy.core.numeric.zeros_like>

so keeping the spelling consistent with other key libraries,
bytes.zeros() and bytearray.zeros() would be better.

-Alexander


More information about the Python-ideas mailing list