classification
Title: .replace() bug when subclassing unicode
Type: Stage:
Components: Unicode Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: gvanrossum, inyeol
Priority: normal Keywords:

Created on 2002-08-23 08:26 by inyeol, last changed 2002-08-23 18:50 by gvanrossum. This issue is now closed.

Messages (2)
msg12113 - (view) Author: Inyeol Lee (inyeol) Date: 2002-08-23 08:26
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
msg12114 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-08-23 18:50
Logged In: YES 
user_id=6380

Fixed in 2.3. Marked as bugfix candidate for 2.2.
History
Date User Action Args
2002-08-23 08:26:13inyeolcreate