A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-bugs-list/2001-October/007842.html below:

[Python-bugs-list] [ python-Bugs-449000 ] re.sub(r'\n', ...) broke

[Python-bugs-list] [ python-Bugs-449000 ] re.sub(r'\n', ...) brokenoreply@sourceforge.net noreply@sourceforge.net
Sun, 21 Oct 2001 10:25:12 -0700
Bugs item #449000, was opened at 2001-08-07 21:37
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=449000&group_id=5470

Category: Regular Expressions
Group: Python 2.2
>Status: Closed
>Resolution: Out of Date
Priority: 6
Submitted By: Guido van Rossum (gvanrossum)
Assigned to: Fredrik Lundh (effbot)
Summary: re.sub(r'\n', ...) broke

Initial Comment:
Fredrik,

I believe the latest changes to re.sub() broke an
endcase in re.sub().

I used to be able to write r'\n' as a pattern and it
would do the same thing as '\n'.
Now this doesn't work any more; '\n' works but r'\n'
doesn't seem to do anything.

I'm guessing this is an endcase handled wrong in the
most recent checkin ("map re.sub() to string.replace(),
when possible" sounds suspicious to me).  I haven't
verified this hypothesis, but it still works in 2.1.1
and is broken in current CVS.

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

>Comment By: Fredrik Lundh (effbot)
Date: 2001-10-21 10:25

Message:
Logged In: YES 
user_id=38376

the string.replace hack is no longer relevant in
SRE 2.2.1 (where sub/subn is implemented in C)

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

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-09-05 10:58

Message:
Logged In: YES 
user_id=6380

Fredrik, when will you have time to fix this? There is
currently a large amount of code checked in that is disabled
because it's buggy...


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

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-08-20 20:47

Message:
Logged In: YES 
user_id=6380

Lowered priority -- this won't need to hold up the 2.2a2
release.

(But /F, if you fix it before Wednesday, it may still make
it into 2.2a2.)

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

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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4