Florian Bruhin added the comment:
I see how it's not possible to compile that pattern as it's using recursion - I
don't mind that.
However, I think this should be handled and re-raised as a re.error ("Exception
raised [...] when some other error occurs during compilation or matching.").
I think no matter what the pattern is, it's quite unexpected to get anything
other than a re.error (or a TypeError) from re.compile.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue25550>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com