Hi Martin!

Thanks! I think last time you mentioned that IP
already had generators--were you referring to 0.9.2 or
some other version in the future?

Also... regarding the Array, is there any workaround?
I tried this:

from System import Array, Convert, Int32
pyList = [9, 7, 8, 4, 6, 3, 6, 8, 4, 1]
toBeSorted = Array.CreateInstance(GetType(Int32),
len(pyList))
for index, item in enumerate(pyList):
    toBeSorted.SetValue(item, index)
Array.Sort(toBeSorted)

but I got this:

Traceback (most recent call last):
   at __main__.Initialize() in
C:\temp\workaround.py:line 5
System.InvalidCastException: Object cannot be stored
in an array of this type.

Cheers
Ray


        
                
______________________________________________________ 
Yahoo! for Good 
Donate to the Hurricane Katrina relief effort. 
http://store.yahoo.com/redcross-donate3/ 

_______________________________________________
users-ironpython.com mailing list
users-ironpython.com@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to