[Python-bugs-list] [Bug #125531] sre Scanner.scan typo (?)

noreply@sourceforge.net noreply@sourceforge.net
Tue, 02 Jan 2001 15:51:49 -0800


Bug #125531, was updated on 2000-Dec-12 11:20
Here is a current snapshot of the bug.

Project: Python
Category: Regular Expressions
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: nobody
Assigned to : effbot
Summary: sre Scanner.scan typo (?)

Details: I believe there's a small glitch in the Scanner.scan method in the
sre module (up through ver. 1.25).  Here's what the scan method does when
it finds a match:

            if callable(action):
                self.match = match
                action = action(self, m.group())

the local variable match in the above is a reference to the match routine
from the internal scanner object in the C DLL.  I think the intention of
the above was probably to set self.match to m -- the Match object returned
from the successful search.


Follow-Ups:

Date: 2001-Jan-02 15:51
By: nobody

Comment:
The Scanner class is experimental, and wasn't really meant to be in 2.0.  I
plan to fix all bugs in 2.1 -- but it's up to the python-dev team to decide
if it should an official part of Python's RE package.

</F>
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=125531&group_id=5470