[IronPython] Overloads

Jonathan Jacobs korpse-ironpython at kaydash.za.net
Wed Aug 3 09:31:17 CEST 2005


I'm pleased to see 0.9 is out and the thank you message. :-)

Hopefully I'm just being stupid about this, but I can't seem to get this
overload story to behave:

>>> System.Random.Next
<method# Next on System.Random>
>>> print System.Random.Next.__doc__
int Next()
int Next(int, int)
int Next(int)
>>> print System.Random.Next[int].__doc__
int Next(int)
>>> System.Random.Next[int](5)
IronPython.Objects.PythonValueError: Bad args for the method <method#
Next on System.Random>
   at input_8.Run(Frame frame)

Any suggestions are most welcome.


More information about the Ironpython-users mailing list