[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.
DOC PATCH
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'."
with
"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>
<http://bugs.python.org/issue1865>
_______________________________________
More information about the docs
mailing list