Message152639
| Author |
mrabarnett |
| Recipients |
docs@python, ezio.melotti, georg.brandl, jcea, mrabarnett, sjmachin, terry.reedy |
| Date |
2012年02月04日.18:37:22 |
| SpamBayes Score |
1.5403122e-08 |
| Marked as misclassified |
No |
| Message-id |
<1328380646.34.0.0881770948178.issue13899@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In re, "\A" within a character set should be similar to "\C", but instead it's still interpreted as meaning the start of the string. That's definitely a bug.
If it doesn't do what it's supposed to do, then it's a bug.
regex tries to be backwards compatible with re but fix such bugs.
The only buggy behaviour which it retains in its version 0 (compatible) behaviour is not splitting on a zero-width match, and that's only because GvR believes that some existing code which uses re may rely on that behaviour. In its version 1 (extended) behaviour it does split on a zero-width match. |
|