https://github.com/python/cpython/commit/1624c646b045df15ba41d17ff03231978b80c3ff
commit: 1624c646b045df15ba41d17ff03231978b80c3ff
branch: main
author: Stan Ulbrych <[email protected]>
committer: encukou <[email protected]>
date: 2025-10-15T15:15:45Z
summary:
gh-140065: Lexical analysis: Correct note about leading zeros in floating point
numbers (GH-140066)
files:
M Doc/reference/lexical_analysis.rst
diff --git a/Doc/reference/lexical_analysis.rst
b/Doc/reference/lexical_analysis.rst
index 0b0dba1a996af0..ea386706e8b511 100644
--- a/Doc/reference/lexical_analysis.rst
+++ b/Doc/reference/lexical_analysis.rst
@@ -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::
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]