[New-bugs-announce] [issue12615] add array.zeroes

Alex Gaynor report at bugs.python.org
Fri Jul 22 20:35:12 CEST 2011


New submission from Alex Gaynor <alex.gaynor at gmail.com>:

>From python-ideas:

introduce array.zeroes, a new classmethod that provides an alternative constructor, its signature is zeroes(typecode, length), which allows for preallocating an array, with a lower overhead than methods such as array(typecode, [0]) * length, and is more readable (plus consistant with the numpy method of the same name).

----------
assignee: alex
components: Library (Lib)
messages: 140901
nosy: alex
priority: normal
severity: normal
status: open
title: add array.zeroes
type: feature request
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12615>
_______________________________________


More information about the New-bugs-announce mailing list