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
[EMAIL PROTECTED]
http://www.thuban.org
 
_______________________________________________
users-ironpython.com mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to