This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: re.finditer
Type: Stage:
Components: Regular Expressions Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: effbot Nosy List: effbot, gvanrossum, michele_s
Priority: normal Keywords:

Created on 2002-07-24 12:09 by michele_s, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (2)
msg11681 - (view) Author: Michele Simionato (michele_s) Date: 2002-07-24 12:09
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
msg11682 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-10-14 12:21
Logged In: YES 
user_id=6380

Fixed in 2.2.2.
History
Date User Action Args
2022-04-10 16:05:31adminsetgithub: 36921
2002-07-24 12:09:00michele_screate