Message10590

Author zyasoft
Recipients alex, amak, fwierzbicki, gmseed, juneau001, zyasoft
Date 2016-01-06.18:51:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452106268.71.0.394521728593.issue1756@psf.upfronthosting.co.za>
In-reply-to
Content
It's worth noting the following:

The jarray module is mostly phased out, but it is still has one
constructor function - zeros - that is not directly available in the
array module.

The equivalent of
jarray.zeros(n, typecode)
is
array.array(typecode, itertools.repeat(0, n))

however itertools.repeat does not define __len__ and therefore we
have to first build out the zero sequence separately, then copy
over. This overhead could be significant for large arrays.
History
Date User Action Args
2016-01-06 18:51:08zyasoftsetmessageid: <1452106268.71.0.394521728593.issue1756@psf.upfronthosting.co.za>
2016-01-06 18:51:08zyasoftsetrecipients: + zyasoft, fwierzbicki, amak, juneau001, gmseed, alex
2016-01-06 18:51:08zyasoftlinkissue1756 messages
2016-01-06 18:51:07zyasoftcreate