[Python-ideas] Specify number of items to allocate for array.array() constructor

Alex Gaynor alex.gaynor at gmail.com
Thu Jul 21 00:36:14 CEST 2011


I suggest array.array(typecode, [0]) * N
would be cool if it was a param to the constructor though (generated a 0'd array 
I suppose), as python's which have GC's that allocate pre-zero'd memory could 
optimize it nicely ;)
Alex


More information about the Python-ideas mailing list

AltStyle によって変換されたページ (->オリジナル) /