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

noreply@sourceforge.net noreply@sourceforge.net
Wed, 24 Jul 2002 05:09:00 -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: Open
Resolution: None
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


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

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