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 mrabarnett
Recipients Arfrever, eli.bendersky, ezio.melotti, larry, mrabarnett, pitrou, python-dev, serhiy.storchaka, tim.peters
Date 2013-08-04.22:38:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375655886.64.0.650319732849.issue18647@psf.upfronthosting.co.za>
In-reply-to
Content
Suppose you have a repeated pattern, such as "(?:...)*" or "(?:...){0,100}".

If, after matching the subpattern, the text position hasn't changed, and none of the capture groups have changed, then there has been no progress, and the subpattern will be matched again with no more progress, unless the maximum count has been reached, at which point it'll continue with the remainder of the pattern. If there's no minimum count, then the subpattern will be matched repeatedly forever.

Therefore, what a repeat should do is not to attempt any more iterations if the text position hasn't changed and none of the capture groups have changed.
History
Date User Action Args
2013-08-04 22:38:06mrabarnettsetrecipients: + mrabarnett, tim.peters, pitrou, larry, ezio.melotti, Arfrever, eli.bendersky, python-dev, serhiy.storchaka
2013-08-04 22:38:06mrabarnettsetmessageid: <1375655886.64.0.650319732849.issue18647@psf.upfronthosting.co.za>
2013-08-04 22:38:06mrabarnettlinkissue18647 messages
2013-08-04 22:38:06mrabarnettcreate