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 arigo
Recipients arigo
Date 2010-06-30.21:18:55
SpamBayes Score 0.00025320027
Marked as misclassified No
Message-id <1277932738.21.0.537266945796.issue9134@psf.upfronthosting.co.za>
In-reply-to
Content
The re module is buggy is rare cases; see attached example script.

The bug is caused by the macros LASTMARK_SAVE and LASTMARK_RESTORE which are sometimes used without the extra code that does if (state->repeat) {mark_save()/mark_restore()}.

The bug appears by mis-reporting the position of groups within a repeated match (with * or +), notably the position of some groups that matched in older repetitions but (after some backtracking) not in newer ones.
History
Date User Action Args
2010-06-30 21:18:58arigosetrecipients: + arigo
2010-06-30 21:18:58arigosetmessageid: <1277932738.21.0.537266945796.issue9134@psf.upfronthosting.co.za>
2010-06-30 21:18:56arigolinkissue9134 messages
2010-06-30 21:18:56arigocreate