FYI this is fixed in the 2.6 branch now.
-Original Message-
From: users-boun...@lists.ironpython.com [mailto:users-
boun...@lists.ironpython.com] On Behalf Of Jeff Hardy
Sent: Tuesday, March 17, 2009 5:03 PM
To: Discussion of IronPython
Subject: Re: [IronPython] CP Issue #21659
On Mon, Mar 16, 2009 at 7:03 PM, Dino Viehland di...@microsoft.com wrote:
Does this make it work?
class x(unicode):
def __init__(self, val): pass
def __new__(cls, val):
return unicode.__new__(cls, unicode(val))
x(1)
I've voted for the bug and raised the priority to
Hi,
Is there any quick workaround for #21569? It's causing about a third
of the Genshi errors I'm hitting. Trying to override __init__ in the
subclass gives the same error.
class Foo(unicode):
def __init__(self, val):
pass
f = Foo(1)
Traceback (most recent call last):
File foo.py,
Jeff Hardy wrote:
Hi,
Is there any quick workaround for #21569? It's causing about a third
of the Genshi errors I'm hitting. Trying to override __init__ in the
subclass gives the same error.
class Foo(unicode):
def __init__(self, val):
pass
f = Foo(1)
Traceback (most recent call
: [IronPython] CP Issue #21659: Subclassing unicode
Hi,
Is there any quick workaround for #21569? It's causing about a third
of the Genshi errors I'm hitting. Trying to override __init__ in the
subclass gives the same error.
class Foo(unicode):
def __init__(self, val):
pass
Foord
Sent: Monday, March 16, 2009 6:02 PM
To: Discussion of IronPython
Subject: Re: [IronPython] CP Issue #21659: Subclassing unicode
Jeff Hardy wrote:
Hi,
Is there any quick workaround for #21569? It's causing about a third
of the Genshi errors I'm hitting. Trying to override __init__
-boun...@lists.ironpython.com [mailto:users-
boun...@lists.ironpython.com] On Behalf Of Michael Foord
Sent: Monday, March 16, 2009 6:02 PM
To: Discussion of IronPython
Subject: Re: [IronPython] CP Issue #21659: Subclassing unicode
Jeff Hardy wrote:
Hi,
Is there any quick workaround for #21569