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.

Author ezio.melotti
Recipients Alcolo Alcolo, ezio.melotti, mrabarnett, r.david.murray
Date 2016-01-01.20:40:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1451680860.43.0.445767382862.issue25054@psf.upfronthosting.co.za>
In-reply-to
Content
AFAIU the problem is at Modules/_sre.c:852: after matching, if the ptr is still at the start position, the start position gets incremented to avoid an endless loop.
Ideally the problem could be avoided by marking and skipping the part(s) of the pattern that have already been tested and produced a zero-length match, however I don't see any easy way to do it.
Unless someone can come up with a reasonable solution, I would suggest to close this as wontfix, and possibly add a note to the docs about this corner case.
History
Date User Action Args
2016-01-01 20:41:00ezio.melottisetrecipients: + ezio.melotti, mrabarnett, r.david.murray, Alcolo Alcolo
2016-01-01 20:41:00ezio.melottisetmessageid: <1451680860.43.0.445767382862.issue25054@psf.upfronthosting.co.za>
2016-01-01 20:41:00ezio.melottilinkissue25054 messages
2016-01-01 20:40:59ezio.melotticreate