]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-140065: Lexical analysis: Correct note about leading zeros in floating point numbe...
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Wed, 15 Oct 2025 15:15:45 +0000 (16:15 +0100)
committerGitHub <noreply@github.com>
Wed, 15 Oct 2025 15:15:45 +0000 (15:15 +0000)
Doc/reference/lexical_analysis.rst

index 0b0dba1a996af010180338a05a118d444cc573fb..ea386706e8b5118f50dceac2f9f42c643c9386b9 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::