]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-140065: Lexical analysis: Correct note about leading zeros in floating...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 16 Oct 2025 07:50:01 +0000 (09:50 +0200)
committerGitHub <noreply@github.com>
Thu, 16 Oct 2025 07:50:01 +0000 (09:50 +0200)
(cherry picked from commit 1624c646b045df15ba41d17ff03231978b80c3ff)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Doc/reference/lexical_analysis.rst

index dfa340763d9255dba4befc27766dc659bde190f5..969da12690636d588b55bf3fbc4766a424c67fe6 100644 (file)
@@ -1308,8 +1308,8 @@ The parts are separated by a decimal point, ``.``::
    2.71828
    4.0
 
-Unlike in integer literals, leading zeros are allowed in the numeric parts.
-For example, ``077.010`` is legal, and denotes the same number as ``77.10``.
+Unlike in integer literals, leading zeros are allowed.
+For example, ``077.010`` is legal, and denotes the same number as ``77.01``.
 
 As in integer literals, single underscores may occur between digits to help
 readability::