Thanks for the bug report. We are aware of this issue, will fix it before 1.0 
RTM.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrzej Krzywda
Sent: Friday, May 19, 2006 3:25 AM
To: [email protected]
Subject: [IronPython] default contructor allows parameters

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

Reply via email to