Skip to content

Commit 4a2d00c

Browse files
gpkcMariatta
authored andcommitted
bpo-31571: Remove duplicated info in Lexical Analysis documentation (GH-3691)
- Remove the second mention about the `u` prefix - Remove the second mention about numeric literals do not include a sign
1 parent 8110837 commit 4a2d00c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Doc/reference/lexical_analysis.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,6 @@ instance of the :class:`bytes` type instead of the :class:`str` type. They
446446
may only contain ASCII characters; bytes with a numeric value of 128 or greater
447447
must be expressed with escapes.
448448

449-
As of Python 3.3 it is possible again to prefix string literals with a
450-
``u`` prefix to simplify maintenance of dual 2.x and 3.x codebases.
451-
452449
Both string and bytes literals may optionally be prefixed with a letter ``'r'``
453450
or ``'R'``; such strings are called :dfn:`raw strings` and treat backslashes as
454451
literal characters. As a result, in string literals, ``'\U'`` and ``'\u'``
@@ -799,10 +796,6 @@ Some examples of floating point literals::
799796

800797
3.14 10. .001 1e100 3.14e-10 0e0 3.14_15_93
801798

802-
Note that numeric literals do not include a sign; a phrase like ``-1`` is
803-
actually an expression composed of the unary operator ``-`` and the literal
804-
``1``.
805-
806799
.. versionchanged:: 3.6
807800
Underscores are now allowed for grouping purposes in literals.
808801

0 commit comments

Comments
 (0)