Author mark.dickinson
Recipients acooke, mark.dickinson, mrabarnett
Date 2010-07-06.13:30:19
SpamBayes Score 0.0111106
Marked as misclassified No
Message-id <1278423022.03.0.183532727321.issue9179@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks very much for the reports.

> So I guess it's also possible that (?(n)pat1|pat2) should always fail
> that, even when len(pat1) = len(pat2)?

Yes, this seems likely to me.  Possibly even the compile stage should fail, though I've no idea how feasible it is to make that happen.

Unfortunately I'm not sure that any of the currently active Python developers is particularly well versed in the intricacies of the re module.  The most realistic option here may be just to document the restrictions on lookbehind assertions more clearly.  Unless you're able to provide a patch?
History
Date User Action Args
2010-07-06 13:30:22mark.dickinsonsetrecipients: + mark.dickinson, acooke, mrabarnett
2010-07-06 13:30:22mark.dickinsonsetmessageid: <1278423022.03.0.183532727321.issue9179@psf.upfronthosting.co.za>
2010-07-06 13:30:20mark.dickinsonlinkissue9179 messages
2010-07-06 13:30:19mark.dickinsoncreate