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 sjmachin
Recipients docs@python, ezio.melotti, georg.brandl, mrabarnett, sjmachin
Date 2012-01-29.21:41:10
SpamBayes Score 1.3783899e-06
Marked as misclassified No
Message-id <1327873271.27.0.428289539817.issue13899@psf.upfronthosting.co.za>
In-reply-to
Content
@Ezio: Comparison of the behaviour of \letter inside/outside character classes is irrelevant. The rules for inside can be expressed simply as:

1. Letters dDsSwW are special; they represent categories as documented, and do in fact have a similar meaning outside character classes.

2. Otherwise normal Python rules for backslash escapes in string literals should be followed. This means automatically that \a -> \x07, \A -> A, \b -> backspace, \B -> B, \z -> z and \Z -> Z.

@Georg: No need to read the source, just read my initial posting: It's compiled as a zero-length matcher ("at") inside a character class ("in") i.e. a nonsense, then at runtime the illegality is deliberately ignored.
History
Date User Action Args
2012-01-29 21:41:11sjmachinsetrecipients: + sjmachin, georg.brandl, ezio.melotti, mrabarnett, docs@python
2012-01-29 21:41:11sjmachinsetmessageid: <1327873271.27.0.428289539817.issue13899@psf.upfronthosting.co.za>
2012-01-29 21:41:10sjmachinlinkissue13899 messages
2012-01-29 21:41:10sjmachincreate