@@ -4755,7 +4755,7 @@ Integer string conversion length limitation
4755
4755
4756
4756
CPython has a global limit for converting between :class: `int ` and :class: `str `
4757
4757
to mitigate denial of service attacks. This limit *only * applies to decimal or
4758
- other non-power-of-two number bases. Hexidecimal , octal, and binary conversions
4758
+ other non-power-of-two number bases. Hexadecimal , octal, and binary conversions
4759
4759
are unlimited. The limit can be configured.
4760
4760
4761
4761
The :class: `int ` type in CPython is an abitrary length number stored in binary
@@ -4792,7 +4792,7 @@ When an operation would exceed the limit, a :exc:`ValueError` is raised:
4792
4792
ValueError: Exceeds the limit (4300) for integer string conversion: value has 8599 digits.
4793
4793
>>> len (hex (i_squared))
4794
4794
7144
4795
- >>> assert int (hex (i_squared), base = 16 ) == i* i # Hexidecimal is unlimited.
4795
+ >>> assert int (hex (i_squared), base = 16 ) == i* i # Hexadecimal is unlimited.
4796
4796
4797
4797
The default limit is 4300 digits as provided in
4798
4798
:data: `sys.int_info.default_max_str_digits <sys.int_info> `.
@@ -4877,7 +4877,7 @@ Information about the default and minimum can be found in :attr:`sys.int_info`:
4877
4877
encounter an error during parsing, usually at startup time or import time or
4878
4878
even at installation time - anytime an up to date ``.pyc `` does not already
4879
4879
exist for the code. A workaround for source that contains such large
4880
- constants is to convert them to ``0x `` hexidecimal form as it has no limit.
4880
+ constants is to convert them to ``0x `` hexadecimal form as it has no limit.
4881
4881
4882
4882
Test your application thoroughly if you use a low limit. Ensure your tests
4883
4883
run with the limit set early via the environment or flag so that it applies
0 commit comments