@@ -4880,7 +4880,7 @@ to mitigate denial of service attacks. This limit *only* applies to decimal or
4880
4880
other non-power-of-two number bases. Hexadecimal, octal, and binary conversions
4881
4881
are unlimited. The limit can be configured.
4882
4882
4883
- The :class: `int ` type in CPython is an abitrary length number stored in binary
4883
+ The :class: `int ` type in CPython is an arbitrary length number stored in binary
4884
4884
form (commonly known as a "bignum"). There exists no algorithm that can convert
4885
4885
a string to a binary integer or a binary integer to a string in linear time,
4886
4886
*unless * the base is a power of 2. Even the best known algorithms for base 10
@@ -4944,7 +4944,7 @@ and :class:`str` or :class:`bytes`:
4944
4944
* ``int(string) `` with default base 10.
4945
4945
* ``int(string, base) `` for all bases that are not a power of 2.
4946
4946
* ``str(integer) ``.
4947
- * ``repr(integer) ``
4947
+ * ``repr(integer) ``.
4948
4948
* any other string conversion to base 10, for example ``f"{integer}" ``,
4949
4949
``"{}".format(integer) ``, or ``b"%d" % integer ``.
4950
4950
@@ -4972,7 +4972,7 @@ command line flag to configure the limit:
4972
4972
:envvar: `PYTHONINTMAXSTRDIGITS ` or :option: `-X int_max_str_digits <-X> `.
4973
4973
If both the env var and the ``-X `` option are set, the ``-X `` option takes
4974
4974
precedence. A value of *-1 * indicates that both were unset, thus a value of
4975
- :data: `sys.int_info.default_max_str_digits ` was used during initilization .
4975
+ :data: `sys.int_info.default_max_str_digits ` was used during initialization .
4976
4976
4977
4977
From code, you can inspect the current limit and set a new one using these
4978
4978
:mod: `sys ` APIs:
0 commit comments