homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients ezio.melotti, mrabarnett, sjmachin
Date 2012年01月28日.22:42:33
SpamBayes Score 2.8312783e-05
Marked as misclassified No
Message-id <1327790554.32.0.914804527022.issue13899@psf.upfronthosting.co.za>
In-reply-to
Content
This happens because \A, \B and \Z are valid escape sequences[0].
If what you mean is that they shouldn't be recognized as such inside a character class, then I can agree with that.
^ and $ are similar to \A and \Z but they are considered as literals inside []. I think the same could also be applied to \b and \B, unless you expect r'[\b]' to match the same as r'\b'.
(On an unrelated note, it's preferable to avoid using ints as flag -- using re.DEBUG is better)
[0]: http://docs.python.org/library/re.html#regular-expression-syntax 
History
Date User Action Args
2012年01月28日 22:42:34ezio.melottisetrecipients: + ezio.melotti, sjmachin, mrabarnett
2012年01月28日 22:42:34ezio.melottisetmessageid: <1327790554.32.0.914804527022.issue13899@psf.upfronthosting.co.za>
2012年01月28日 22:42:33ezio.melottilinkissue13899 messages
2012年01月28日 22:42:33ezio.melotticreate

AltStyle によって変換されたページ (->オリジナル) /