Message6548
The Jython documentation on your website states:
"The array module exports two factory functions:
array(type, sequence)
zeros(type, length)"
If I type:
arr = zeros('i',10)
I get the error:
'zeros' is not defined
Chapter 2 of the Jython book linked-to on your website at:
http://www.jython.org/jythonbook/en/1.0/DataTypes.html#jython-specific-collections
states in Listing 2-30:
arr2 = zeros(6, 'i')
noting that the ordering of the type and length are reversed. Using this ordering doesn't work either.
Thus, as a new user I am left wondering which way round the type and length are and whether this function is supported at all. |
|
Date |
User |
Action |
Args |
2011-06-10 13:29:04 | gmseed | set | recipients:
+ gmseed |
2011-06-10 13:29:03 | gmseed | set | messageid: <1307712543.94.0.380710553858.issue1756@psf.upfronthosting.co.za> |
2011-06-10 13:29:03 | gmseed | link | issue1756 messages |
2011-06-10 13:29:03 | gmseed | create | |
|