[IronPython] Arrays in IronPython

David Anton dave at tangiblesoftwaresolutions.com
Wed Sep 20 17:15:03 CEST 2006


After a lot of googling on this, I'm still confused about .NET arrays (not
Python lists) in IronPython.
One dimensional arrays are clear:
foo = Array[int] ((1,2))

But how to set up jagged arrays and multidimensional arrays?

I know that IronPython is happy with the following (i.e., no error), but I'm
not sure what they mean:
foo = Array[int][int]
foo = Array[Array[int]]

The first one behaves just like Array[int], so I think IronPython is just
ignoring the second "[int]" ?
The second one would appear to me to be a jagged array, but how do I
initialize it with values?

-- 
View this message in context: http://www.nabble.com/Arrays-in-IronPython-tf2306048.html#a6409948
Sent from the IronPython mailing list archive at Nabble.com.




More information about the Ironpython-users mailing list