Thanks for the bug report - I've filed this one and we should be able to get it 
fixed for beta 4.


Do you want to help develop Dynamic languages on CLR? 
(http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Tarlano
Sent: Sunday, February 26, 2006 9:11 AM
To: Discussion of IronPython
Subject: [IronPython] bug: Subclassing str fails

Subclassing str in IronPython fails, this behavior is different then
CPython. See the following:

------ CPython (success)

Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> class MyString(str):
...  pass
...
>>> s = MyString()
>>> s
''
>>>


------ IronPython (failure)


IronPython 1.0.2237 (Beta) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> class MyString(str):
...  pass
...
>>> s = MyString()
Traceback (most recent call last):
  File , line 0, in input##572
  File , line 0, in Make##440
TypeError: MakeNew$$() takes exactly 2 argument (1 given)
>>>
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to