[Python-bugs-list] [ python-Bugs-585882 ] re.finditer

noreply@sourceforge.net noreply@sourceforge.net
Mon, 14 Oct 2002 05:21:25 -0700


Bugs item #585882, was opened at 2002-07-24 08:09
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=585882&group_id=5470

Category: Regular Expressions
Group: Python 2.2.1
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Michele Simionato (michele_s)
Assigned to: Fredrik Lundh (effbot)
Summary: re.finditer

Initial Comment:
There is an inconsistency between re and sre:

$ python
Python 2.2.1 (#1, Apr  9 2002, 13:10:27)
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on 
linux2
Type "help", "copyright", "credits" or "license" for more 
information.
>>> import re
>>> re.finditer('r+?','library')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'finditer'

whereas

>>> import sre
>>> sre.finditer('r+?','library')

works. I also reported to comp.lang.python


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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-10-14 08:21

Message:
Logged In: YES 
user_id=6380

Fixed in 2.2.2.

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

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