Mark Dickinson <dicki...@gmail.com> added the comment:

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?

----------
nosy: +mark.dickinson, mrabarnett

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9179>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to