@@ -4751,7 +4751,7 @@ to mitigate denial of service attacks. This limit *only* applies to decimal or
4751
4751
other non-power-of-two number bases. Hexadecimal, octal, and binary conversions
4752
4752
are unlimited. The limit can be configured.
4753
4753
4754
- The :class: `int ` type in CPython is an abitrary length number stored in binary
4754
+ The :class: `int ` type in CPython is an arbitrary length number stored in binary
4755
4755
form (commonly known as a "bignum"). There exists no algorithm that can convert
4756
4756
a string to a binary integer or a binary integer to a string in linear time,
4757
4757
*unless * the base is a power of 2. Even the best known algorithms for base 10
@@ -4815,7 +4815,7 @@ and :class:`str` or :class:`bytes`:
4815
4815
* ``int(string) `` with default base 10.
4816
4816
* ``int(string, base) `` for all bases that are not a power of 2.
4817
4817
* ``str(integer) ``.
4818
- * ``repr(integer) ``
4818
+ * ``repr(integer) ``.
4819
4819
* any other string conversion to base 10, for example ``f"{integer}" ``,
4820
4820
``"{}".format(integer) ``, or ``b"%d" % integer ``.
4821
4821
@@ -4843,7 +4843,7 @@ command line flag to configure the limit:
4843
4843
:envvar: `PYTHONINTMAXSTRDIGITS ` or :option: `-X int_max_str_digits <-X> `.
4844
4844
If both the env var and the ``-X `` option are set, the ``-X `` option takes
4845
4845
precedence. A value of *-1 * indicates that both were unset, thus a value of
4846
- :data: `sys.int_info.default_max_str_digits ` was used during initilization .
4846
+ :data: `sys.int_info.default_max_str_digits ` was used during initialization .
4847
4847
4848
4848
From code, you can inspect the current limit and set a new one using these
4849
4849
:mod: `sys ` APIs:
0 commit comments