We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9d7d12 commit 077448eCopy full SHA for 077448e
Doc/reference/lexical_analysis.rst
@@ -986,11 +986,11 @@ case-insensitive. For example::
986
0xdeadbeef
987
0xDead_Beef
988
989
-Underscores can occur between digits or after the base specifier, but not
990
-within it.
991
-For example, ``0x_1f`` is a valid literal, but ``0_x1f`` is not.
+An underscore can follow the base specifier.
+For example, ``0x_1f`` is a valid literal, but ``0_x1f`` and ``0x__1f`` are
+not.
992
993
-Note that leading zeros in a non-zero decimal number are not allowed.
+Leading zeros in a non-zero decimal number are not allowed.
994
For example, ``0123`` is not a valid literal.
995
This is for disambiguation with C-style octal literals, which Python used
996
before version 3.0.
0 commit comments