@@ -5480,7 +5480,7 @@ to mitigate denial of service attacks. This limit *only* applies to decimal or
54805480other non-power-of-two number bases. Hexadecimal, octal, and binary conversions
54815481are unlimited. The limit can be configured.
54825482
5483- The :class: `int ` type in CPython is an abitrary length number stored in binary
5483+ The :class: `int ` type in CPython is an arbitrary length number stored in binary
54845484form (commonly known as a "bignum"). There exists no algorithm that can convert
54855485a string to a binary integer or a binary integer to a string in linear time,
54865486*unless * the base is a power of 2. Even the best known algorithms for base 10
@@ -5544,7 +5544,7 @@ and :class:`str` or :class:`bytes`:
55445544* ``int(string) `` with default base 10.
55455545* ``int(string, base) `` for all bases that are not a power of 2.
55465546* ``str(integer) ``.
5547- * ``repr(integer) ``
5547+ * ``repr(integer) ``.
55485548* any other string conversion to base 10, for example ``f"{integer}" ``,
55495549 ``"{}".format(integer) ``, or ``b"%d" % integer ``.
55505550
@@ -5572,7 +5572,7 @@ command line flag to configure the limit:
55725572 :envvar: `PYTHONINTMAXSTRDIGITS ` or :option: `-X int_max_str_digits <-X> `.
55735573 If both the env var and the ``-X `` option are set, the ``-X `` option takes
55745574 precedence. A value of *-1 * indicates that both were unset, thus a value of
5575- :data: `sys.int_info.default_max_str_digits ` was used during initilization .
5575+ :data: `sys.int_info.default_max_str_digits ` was used during initialization .
55765576
55775577From code, you can inspect the current limit and set a new one using these
55785578:mod: `sys ` APIs:
0 commit comments