[ python-Bugs-926075 ] re.sub on u'' gives NON-unicode ''
SourceForge.net
noreply at sourceforge.net
Tue Apr 20 16:01:01 EDT 2004
Bugs item #926075, was opened at 2004-03-30 17:27
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=926075&group_id=5470
Category: Regular Expressions
Group: Python 2.3
Status: Open
>Resolution: Accepted
Priority: 5
Submitted By: Alex Martelli (aleax)
>Assigned to: Hye-Shik Chang (perky)
Summary: re.sub on u'' gives NON-unicode ''
Initial Comment:
>>> import re
>>> re.sub(u'.', u'', u'')
''
This holds for any RE that doesn't match the empty string.
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2004-04-20 22:01
Message:
Logged In: YES
user_id=21627
The patch is fine, please apply.
----------------------------------------------------------------------
Comment By: Hye-Shik Chang (perky)
Date: 2004-04-01 07:47
Message:
Logged In: YES
user_id=55188
Here's a fix.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=926075&group_id=5470
More information about the Python-bugs-list
mailing list