summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-09-25 23:23:33 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-09-25 23:23:33 (GMT)
commit26b940f762f0b306ff894601003f51a8d036e285 (patch)
tree1b0db002b179428bb297da6be9bfa3e46397e73c /Doc/reference
parentad051cbce1360ad3055a048506c09bc2a5442474 (diff)
downloadcpython-26b940f762f0b306ff894601003f51a8d036e285.zip
cpython-26b940f762f0b306ff894601003f51a8d036e285.tar.gz
cpython-26b940f762f0b306ff894601003f51a8d036e285.tar.bz2
bpo-31571: Remove duplicated info in Lexical Analysis documentation (GH-3691) (GH-3754)
- Remove the second mention about the `u` prefix - Remove the second mention about numeric literals do not include a sign (cherry picked from commit 4a2d00cb4525fcb3209f04531472ba6a359ed418)
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/lexical_analysis.rst7
1 files changed, 0 insertions, 7 deletions
diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst
index c2fd2b7..4a5abf6 100644
--- a/Doc/reference/lexical_analysis.rst
+++ b/Doc/reference/lexical_analysis.rst
@@ -446,9 +446,6 @@ instance of the :class:`bytes` type instead of the :class:`str` type. They
may only contain ASCII characters; bytes with a numeric value of 128 or greater
must be expressed with escapes.
-As of Python 3.3 it is possible again to prefix string literals with a
-``u`` prefix to simplify maintenance of dual 2.x and 3.x codebases.
-
Both string and bytes literals may optionally be prefixed with a letter ``'r'``
or ``'R'``; such strings are called :dfn:`raw strings` and treat backslashes as
literal characters. As a result, in string literals, ``'\U'`` and ``'\u'``
@@ -799,10 +796,6 @@ Some examples of floating point literals::
3.14 10. .001 1e100 3.14e-10 0e0 3.14_15_93
-Note that numeric literals do not include a sign; a phrase like ``-1`` is
-actually an expression composed of the unary operator ``-`` and the literal
-``1``.
-
.. versionchanged:: 3.6
Underscores are now allowed for grouping purposes in literals.