Skip to content

Commit 077448e

Browse files
committed
More fixups
1 parent f9d7d12 commit 077448e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/reference/lexical_analysis.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -986,11 +986,11 @@ case-insensitive. For example::
986986
0xdeadbeef
987987
0xDead_Beef
988988

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.
989+
An underscore can follow the base specifier.
990+
For example, ``0x_1f`` is a valid literal, but ``0_x1f`` and ``0x__1f`` are
991+
not.
992992

993-
Note that leading zeros in a non-zero decimal number are not allowed.
993+
Leading zeros in a non-zero decimal number are not allowed.
994994
For example, ``0123`` is not a valid literal.
995995
This is for disambiguation with C-style octal literals, which Python used
996996
before version 3.0.

0 commit comments

Comments
 (0)