2 messages in org.python.python-bugs-list[ python-Bugs-926075 ] re.sub on u'' ...
FromSent OnAttachments
SourceForge.netMar 30, 2004 10:28 am 
SourceForge.netApr 1, 2004 12:47 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[ python-Bugs-926075 ] re.sub on u'' gives NON-unicode ''Actions...
From:SourceForge.net (nore@sourceforge.net)
Date:Mar 30, 2004 10:28:19 am
List:org.python.python-bugs-list

Bugs item #926075, was opened at 2004-03-30 17:27 Message generated for change (Tracker Item Submitted) made by Item Submitter 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: None Priority: 5 Submitted By: Alex Martelli (aleax) Assigned to: Fredrik Lundh (effbot) 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.

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