Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment:

Are you sure your regexp will return what you want?

The best match for the first part of the alternative is
("14",
 "D:\projects\retest\ver_700\modules\sapekl\__init__.py, line 21"
)
The best match for the second part is
("D:\Projects\retest\ver_700\lib\_test\test_sapekl.py, line 14",
 "21"
)

IOW, don't forget that the * operator will first try the longest
possible match.

Also, there seem to be an extra * here:
          # any text ([filename]) any text
          r'.*\((?:(?P<file1>[^)]+))*\).*' +
                                    ^
This alone can make the number of combinations explodes.

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3128>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to