Skip to content

Commit f18fb83

Browse files
authored
gh-162602: mention the int str limit in the lexical analysis section (GH-162912)
1 parent 44c154a commit f18fb83

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎Doc/reference/lexical_analysis.rst‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,8 +1345,10 @@ Integer literals denote whole numbers. For example::
13451345
3
13461346
2147483647
13471347

1348-
There is no limit for the length of integer literals apart from what can be
1349-
stored in available memory::
1348+
There is a limit on the length of decimal integer literals via the
1349+
:ref:`integer string conversion length limitation <int_max_str_digits>` (4300
1350+
digits by default). If using binary, octal or hex bases there is no limit apart
1351+
from what can be stored in available memory::
13501352

13511353
7922816251426433759354395033679228162514264337593543950336
13521354

0 commit comments

Comments
 (0)