22 Jul
2011
22 Jul
'11
6:27 p.m.
Philip Jenvey
+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