[IronPython] default contructor allows parameters
Andrzej Krzywda
andrzej.krzywda at resolversystems.com
Fri May 19 12:24:52 CEST 2006
Hi all,
It seems that IronPython is allowing parameters to the default
constructor but CPython isn't.
CPython
>>> class Foo(object):
... pass
...
>>> Foo(5)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: default __new__ takes no parameters
>>>
IronPython Beta 6
>>> class Foo(object):
... pass
...
>>> Foo(5)
<Foo object at 0x000000000000002B>
>>>
Regards,
Andrzej Krzywda
http://www.resolversystems.com
More information about the Ironpython-users
mailing list