[docs] [issue1865] Document bytes alias for 2.7

Terry J. Reedy report at bugs.python.org
Mon Sep 20 21:21:03 CEST 2010

Terry J. Reedy <tjreedy at udel.edu> added the comment:

Changing title to match current issue status.


Grammar section: As near as I can tell, the alternatives for 

stringprefix    ::=  "r" | "u" | "ur" | "R" | "U" | "UR" | "Ur" | "uR"

should simply be augmented with

                     | "b" | "B" | "br" | "Br" | "bR" | "BR"

(on a separate line, indented as indicated).

Text section: At the end of the second paragraph, *replace*

"The two prefix characters may be combined; in this case, 'u' must appear before 'r'."


"A prefix of 'b' or 'B' is ignored in Python2; it indicates that the literal should become a bytes object in Python 3. A 'u' or 'b' prefix may be followed (but not preceded) by an 'r' prefix."

components:  -Interpreter Core
resolution: fixed -> 
title: Bytes alias for 2.6 -> Document bytes alias for 2.7

Python tracker <report at bugs.python.org>

More information about the docs mailing list