[IronPython] Running on Mono

Keith J. Farmer kfarmer at thuban.org
Sat Apr 9 08:18:00 CEST 2005


I'm having too much fun...
 
Generics seem to have problems, too.  Given Python's popularity, perhaps
someone at Ximian can take this as something to target.
 
>>> from System.Collections.Generic import *
>>> l = List[str]()
>>> l.Add(0)
System.Exception: bad args to this method <method# Add on
System.Collections.Generic.List`1>
in <0x00074> IronPython.Objects.ReflectedMethodBase:Call (object[])
in <0x001c8> IronPython.Objects.Ops:Call (object,object)
in <0x0005e> input_4:Run (IronPython.Objects.Frame)
in <0x0023f> IronPython.Hosting.PythonEngine:DoOneInteractive
(IronPython.Objects.Frame)
in <0x0003f> IronPython.Hosting.PythonEngine:RunInteractive ()
 
>>> l.Add("0")
System.Reflection.TargetException: Unable to invoke an invalid target.
in (unmanaged) 0046101F
in <0x00004> (wrapper managed-to-native)
System.Reflection.MonoMethod:InternalInvoke (object,object[])
in <0x00059> System.Reflection.MonoMethod:Invoke
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[]
,System.Globalization.CultureInfo)
 
----------
Keith J. Farmer
kfarmer at thuban.org
http://www.thuban.org
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20050408/544c0fd2/attachment.html>


More information about the Ironpython-users mailing list