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 barry
Recipients barry, docs@python
Date 2012-01-09.13:34:21
SpamBayes Score 0.000388392
Marked as misclassified No
Message-id <>
The lexical analysis documentation says this:

"Bytes literals are always prefixed with 'b' or 'B';..."

"Both string and bytes literals may optionally be prefixed with a letter 'r' or 'R';..."

But that would lead you to believe that to get raw byte strings you should use rb"foo".  In fact, that's a SyntaxError in Python 2.6+ and Python 3.  What *does* work though is br"foo".

Either Python should accept both spellings (harder) or the documentation should make it clear that the 'b' must preceded the 'r'.
Date User Action Args
2012-01-09 13:34:22barrysetrecipients: + barry, docs@python
2012-01-09 13:34:22barrysetmessageid: <>
2012-01-09 13:34:21barrylinkissue13744 messages
2012-01-09 13:34:21barrycreate