Skip to content

Commit e459bd6

Browse files
[3.13] Fix various typos in Doc/library/stdtypes.rst (GH-155879) (#156029)
(cherry picked from commit fbbd94e) Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent 2143dcd commit e459bd6

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ A hexadecimal string takes the form::
673673

674674
[sign] ['0x'] integer ['.' fraction] ['p' exponent]
675675

676-
where the optional ``sign`` may by either ``+`` or ``-``, ``integer``
676+
where the optional ``sign`` may be either ``+`` or ``-``, ``integer``
677677
and ``fraction`` are strings of hexadecimal digits, and ``exponent``
678678
is a decimal integer with an optional leading sign. Case is not
679679
significant, and there must be at least one hexadecimal digit in
@@ -1293,7 +1293,7 @@ Mutable sequence types also support the following methods:
12931293
:no-typesetting:
12941294
.. method:: sequence.pop(index=-1, /)
12951295

1296-
Retrieve the item at *index* and also removes it from *sequence*.
1296+
Retrieve the item at *index* and also remove it from *sequence*.
12971297
By default, the last item in *sequence* is removed and returned.
12981298

12991299
.. method:: bytearray.remove(value, /)
@@ -1965,7 +1965,7 @@ expression support in the :mod:`re` module).
19651965
one character, ``False`` otherwise. Alphabetic characters are those characters defined
19661966
in the Unicode character database as "Letter", i.e., those with general category
19671967
property being one of "Lm", "Lt", "Lu", "Ll", or "Lo". Note that this is different
1968-
from the `Alphabetic property defined in the section 4.10 'Letters, Alphabetic, and
1968+
from the `Alphabetic property defined in section 4.10 'Letters, Alphabetic, and
19691969
Ideographic' of the Unicode Standard
19701970
<https://www.unicode.org/versions/Unicode15.1.0/ch04.pdf>`_.
19711971
For example:
@@ -3265,7 +3265,7 @@ objects.
32653265

32663266
.. classmethod:: fromhex(string, /)
32673267

3268-
This :class:`bytearray` class method returns bytearray object, decoding
3268+
This :class:`bytearray` class method returns a bytearray object, decoding
32693269
the given string object. The string must contain two hexadecimal digits
32703270
per byte, with ASCII whitespace being ignored.
32713271

@@ -4160,7 +4160,7 @@ the ``%`` operator (modulo).
41604160
This is also known as the bytes *formatting* or *interpolation* operator.
41614161
Given ``format % values`` (where *format* is a bytes object), ``%`` conversion
41624162
specifications in *format* are replaced with zero or more elements of *values*.
4163-
The effect is similar to using the :c:func:`sprintf` in the C language.
4163+
The effect is similar to using the :c:func:`sprintf` function in the C language.
41644164

41654165
If *format* requires a single argument, *values* may be a single non-tuple
41664166
object. [5]_ Otherwise, *values* must be a tuple with exactly the number of
@@ -4358,7 +4358,7 @@ copying.
43584358
byte, but other types such as :class:`array.array` may have bigger elements.
43594359

43604360
``len(view)`` is equal to the length of :class:`~memoryview.tolist`, which
4361-
is the nested list representation of the view. If ``view.ndim = 1``,
4361+
is the nested list representation of the view. If ``view.ndim == 1``,
43624362
this is equal to the number of elements in the view.
43634363

43644364
.. versionchanged:: 3.12
@@ -4443,7 +4443,7 @@ copying.
44434443
:class:`collections.abc.Sequence`
44444444

44454445
.. versionchanged:: 3.5
4446-
memoryviews can now be indexed with tuple of integers.
4446+
memoryviews can now be indexed with a tuple of integers.
44474447

44484448
:class:`memoryview` has several methods:
44494449

@@ -5809,7 +5809,7 @@ enables cleaner type hinting syntax compared to :data:`typing.Union`.
58095809

58105810
.. note::
58115811

5812-
The ``|`` operand cannot be used at runtime to define unions where one or
5812+
The ``|`` operator cannot be used at runtime to define unions where one or
58135813
more members is a forward reference. For example, ``int | "Foo"``, where
58145814
``"Foo"`` is a reference to a class not yet defined, will fail at
58155815
runtime. For unions which include forward references, present the
@@ -5963,7 +5963,7 @@ Methods
59635963
Methods are functions that are called using the attribute notation.
59645964
There are two flavors: :ref:`built-in methods <builtin-methods>`
59655965
(such as :meth:`~list.append` on lists)
5966-
and :ref:`class instance method <instance-methods>`.
5966+
and :ref:`class instance methods <instance-methods>`.
59675967
Built-in methods are described with the types that support them.
59685968

59695969
If you access a method (a function defined in a class namespace) through an

0 commit comments

Comments
 (0)