https://github.com/python/cpython/commit/231552c6f7e6fc5cc4b2f401fe63663fcb6c646a commit: 231552c6f7e6fc5cc4b2f401fe63663fcb6c646a branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: encukou <[email protected]> date: 2025-10-16T09:50:01+02:00 summary:
[3.14] gh-140065: Lexical analysis: Correct note about leading zeros in floating point numbers (GH-140066) (GH-140167) (cherry picked from commit 1624c646b045df15ba41d17ff03231978b80c3ff) Co-authored-by: Stan Ulbrych <[email protected]> files: M Doc/reference/lexical_analysis.rst diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst index dfa340763d9255..969da12690636d 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]
