[Python-ideas] Specify number of items to allocate for array.array() constructor
Alex Gaynor
alex.gaynor at gmail.com
Fri Jul 22 20:27:44 CEST 2011
Philip Jenvey <pjenvey at ...> writes:
> +1, Jython's had a custom function for this forever, originally from its old
jarray module:
> jarray.zeros(length, typecode). I think its swapped order of args are due to
jarray probably predating
> the array module.
>> --
> Philip Jenvey
>
array.zeroes(typecode, length) seems like a good API to me. It's also
consistant with the name for the numpy method which does the same. I'll go
ahead and file a bug for this and try to work up a patch.
Alex
More information about the Python-ideas
mailing list