Re: [IronPython] CP Issue #21659: Subclassing unicode

2009-03-20 Thread Dino Viehland
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: [Ir

Re: [IronPython] CP Issue #21659: Subclassing unicode

2009-03-17 Thread Jeff Hardy
On Mon, Mar 16, 2009 at 7:03 PM, Dino Viehland 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 medium.  I've

Re: [IronPython] CP Issue #21659: Subclassing unicode

2009-03-16 Thread Michael Foord
users-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 #

Re: [IronPython] CP Issue #21659: Subclassing unicode

2009-03-16 Thread Dino Viehland
f 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? It's causing about a third > &

Re: [IronPython] CP Issue #21659: Subclassing unicode

2009-03-16 Thread Dino Viehland
; To: Discussion of IronPython > Subject: [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 er

Re: [IronPython] CP Issue #21659: Subclassing unicode

2009-03-16 Thread Michael Foord
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 la

[IronPython] CP Issue #21659: Subclassing unicode

2009-03-16 Thread Jeff Hardy
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"