[Python-bugs-list] [ python-Bugs-451107 ] re.sub does not replace slahes (2.2a1)
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 22 Aug 2001 01:30:02 -0700
Bugs item #451107, was opened at 2001-08-15 01:34
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=451107&group_id=5470
Category: Regular Expressions
Group: Python 2.2
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Mihai (muqker)
Assigned to: Fredrik Lundh (effbot)
Summary: re.sub does not replace slahes (2.2a1)
Initial Comment:
Python 2.2a1:
>>> re.findall ('\\', 'a\')
['\']
but
>>> re.sub ('\\', 'b', 'a\')
'a\'
>>>
Python 2.0.1:
>>> re.sub ('\\', 'b', 'a\')
'ab'
>>>
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-08-22 01:30
Message:
Logged In: YES
user_id=6380
Closing as duplicate of bug 449000.
This will be fixed in 2.2a2, through a work-around that
disables an optimization that causes this problem -- I hope
a real fix will be available in 2.2a3.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=451107&group_id=5470