From 18eee8e268a46f8d9b2e8ba85b24676b8b2876b1 Mon Sep 17 00:00:00 2001 From: Guilherme Caminha Date: Thu, 21 Sep 2017 23:01:23 -0300 Subject: [PATCH 1/2] Removing redundant information This information is already stated right below, with more detail and a link to a PEP. --- Doc/reference/lexical_analysis.rst | 3 --- 1 file changed, 3 deletions(-) diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst index 684119a443954c..baadd88a3b7600 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'`` From b3ae814c18ee83d3716f46dd0119990e8aa15450 Mon Sep 17 00:00:00 2001 From: Guilherme Caminha Date: Sun, 24 Sep 2017 01:37:38 -0300 Subject: [PATCH 2/2] Removing more redundant information --- Doc/reference/lexical_analysis.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst index baadd88a3b7600..caa59e503d54f5 100644 --- a/Doc/reference/lexical_analysis.rst +++ b/Doc/reference/lexical_analysis.rst @@ -796,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.