[issue12615] add array.zeroes
Raymond Hettinger
report at bugs.python.org
Fri Jul 22 22:55:15 CEST 2011
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
-1
Array's API much more closely matches that of list than it does numpy's arrays which are profoundly different. So we should stick the one-way-to-do-it idiom: array.array('c', '\0') * 100 or array.array('d', [0.0]) * 100.
Also, the current idiom is much more flexible in that it works with any initializer, not just a zero (compare with numpy's ones() constructor for example).
----------
assignee: alex -> rhettinger
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12615>
_______________________________________
More information about the Python-bugs-list
mailing list