[Python-bugs-list] [ python-Bugs-599128 ] .replace() bug when subclassing unicode

noreply@sourceforge.net noreply@sourceforge.net
Fri, 23 Aug 2002 11:50:39 -0700


Bugs item #599128, was opened at 2002-08-23 04:26
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=599128&group_id=5470

Category: Unicode
Group: Python 2.2.1
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Inyeol Lee (inyeol)
>Assigned to: Guido van Rossum (gvanrossum)
Summary: .replace() bug when subclassing unicode

Initial Comment:
Python 2.2.1 (#1, Apr 10 2002, 18:25:16) 
[GCC 2.95.3 20010315 (release)] on sunos5

>>> class U(unicode): pass
>>> U(u'abc').replace('ab', '__', 0)
u'__c'

-Inyeol Lee

----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-08-23 14:50

Message:
Logged In: YES 
user_id=6380

Fixed in 2.3. Marked as bugfix candidate for 2.2.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=599128&group_id=5470