[IronPython] BUG: subclassing tuple not working
Anthony Tarlano
mailinglist.account at gmail.com
Mon Mar 20 22:13:37 CET 2006
Here is the CPython behavior:
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> class myTuple(tuple):
... pass
...
>>> t = myTuple()
>>> t
()
>>>
Here is the IronPython behavior:
IronPython 1.0.2258 (Beta) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> class myTuple(tuple):
... pass
...
...
>>> t = myTuple()
Traceback (most recent call last):
File , line 0, in input##99
File , line 0, in PythonNew##76
TypeError: myTuple() takes exactly 2 arguments (1 given)
>>>
More information about the Ironpython-users
mailing list