Message254046
| Author |
The Compiler |
| Recipients |
The Compiler, effbot, ezio.melotti, mrabarnett, pitrou, serhiy.storchaka |
| Date |
2015年11月04日.10:26:25 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1446632785.3.0.590011180655.issue25550@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|