Message6548

Author gmseed
Recipients gmseed
Date 2011-06-10.13:29:03
SpamBayes Score 0.0031179525
Marked as misclassified No
Message-id <1307712543.94.0.380710553858.issue1756@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-06-10 13:29:04gmseedsetrecipients: + gmseed
2011-06-10 13:29:03gmseedsetmessageid: <1307712543.94.0.380710553858.issue1756@psf.upfronthosting.co.za>
2011-06-10 13:29:03gmseedlinkissue1756 messages
2011-06-10 13:29:03gmseedcreate