Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae2dbe2

Browse files
committed
#5486: typos.
1 parent f87e04d commit ae2dbe2

15 files changed

Lines changed: 27 additions & 27 deletions

File tree

Doc/c-api/buffer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ could be used to pass around structured data in its native, in-memory format.
9393
occur (striding in a contiguous memory block).
9494

9595
Here is a function that returns a pointer to the element in an N-D array
96-
pointed to by an N-dimesional index when there are both non-NULL strides
96+
pointed to by an N-dimensional index when there are both non-NULL strides
9797
and suboffsets::
9898

9999
void *get_item_pointer(int ndim, void *buf, Py_ssize_t *strides,

Doc/c-api/init.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ interpreter lock and can perform any Python API calls.
820820
it returns -1 without setting any exception.
821821

822822
This function can be called on any thread, be it a Python thread or
823-
some other system thread. If it is a Python thread, it doesen't matter if
823+
some other system thread. If it is a Python thread, it doesn't matter if
824824
it holds the global interpreter lock or not.
825825

826826
.. versionadded:: 2.7

Doc/c-api/typeobj.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ member in the :ctype:`PyTypeObject` structure should be *NULL*. Otherwise, the
12141214
export, *view* is the :ctype:`Py_buffer` struct to fill, and *flags* gives
12151215
the conditions the caller wants the memory under. (See
12161216
:cfunc:`PyObject_GetBuffer` for all flags.) :cmember:`bf_getbuffer` is
1217-
responsible for filling *view* with the approiate information.
1217+
responsible for filling *view* with the appropriate information.
12181218
(:cfunc:`PyBuffer_FillView` can be used in simple cases.) See
12191219
:ctype:`Py_buffer`\s docs for what needs to be filled in.
12201220

Doc/distutils/packageindex.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ repository to work with::
9898

9999
python setup.py register -r http://example.com/pypi
100100

101-
The name of the section that describes the repository may also be used
102-
for conveniency::
101+
For convenience, the name of the section that describes the repository
102+
may also be used::
103103

104104
python setup.py register -r other

Doc/library/2to3.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ differentiate between the print statement with parentheses (such as ``print
9999
Fixers
100100
------
101101

102-
Each step of tranforming code is encapsulated in a fixer. The command ``2to3
102+
Each step of transforming code is encapsulated in a fixer. The command ``2to3
103103
-l`` lists them. As :ref:`documented above <2to3-using>`, each can be turned on
104104
and off individually. They are described here in more detail.
105105

@@ -167,11 +167,11 @@ and off individually. They are described here in more detail.
167167
168168
.. 2to3fixer:: idioms
169169
170-
This optional fixer preforms several transformations that make Python code
171-
more idiomatic. Type comparisions like ``type(x) is SomeClass`` and
170+
This optional fixer performs several transformations that make Python code
171+
more idiomatic. Type comparisons like ``type(x) is SomeClass`` and
172172
``type(x) == SomeClass`` are converted to ``isinstance(x, SomeClass)``.
173173
``while 1`` becomes ``while True``. This fixer also tries to make use of
174-
:func:`sorted` in appropiate places. For example, this block ::
174+
:func:`sorted` in appropriate places. For example, this block ::
175175
176176
L = list(some_iterable)
177177
L.sort()

Doc/library/cgi.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ algorithms implemented in this module in other circumstances.
265265
.. function:: parse_qs(qs[, keep_blank_values[, strict_parsing]])
266266

267267
This function is deprecated in this module. Use :func:`urllib.parse.parse_qs`
268-
instead. It is maintained here only for backward compatiblity.
268+
instead. It is maintained here only for backward compatibility.
269269

270270
.. function:: parse_qsl(qs[, keep_blank_values[, strict_parsing]])
271271

272272
This function is deprecated in this module. Use :func:`urllib.parse.parse_qs`
273-
instead. It is maintained here only for backward compatiblity.
273+
instead. It is maintained here only for backward compatibility.
274274

275275
.. function:: parse_multipart(fp, pdict)
276276

Doc/library/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The following exceptions are only used as base classes for other exceptions.
5353
The base class for all built-in exceptions. It is not meant to be directly
5454
inherited by user-defined classes (for that use :exc:`Exception`). If
5555
:func:`str` or :func:`unicode` is called on an instance of this class, the
56-
representation of the argument(s) to the instance are returned or the emptry
56+
representation of the argument(s) to the instance are returned or the empty
5757
string when there were no arguments. All arguments are stored in :attr:`args`
5858
as a tuple.
5959

Doc/library/importlib.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ Functions
7878

7979
The :func:`import_module` function acts as a simplifying wrapper around
8080
:func:`__import__`. This means all semantics of the function are derived
81-
from :func:`__import__`, including requiring the package where an import is
82-
occuring from to already be imported (i.e., *package* must already be
83-
imported).
81+
from :func:`__import__`, including requiring the package from which an
82+
import is occurring to have been previously imported (i.e., *package*
83+
must already be imported).
8484

8585
:mod:`importlib.abc` -- Abstract base classes related to import
8686
---------------------------------------------------------------

Doc/library/pickle.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,13 +473,13 @@ objects. [#]_
473473
Although powerful, implementing :meth:`__reduce__` directly in your classes is
474474
error prone. For this reason, class designers should use the high-level
475475
interface (i.e., :meth:`__getnewargs__`, :meth:`__getstate__` and
476-
:meth:`__setstate__`) whenever possible. We will show however cases where using
476+
:meth:`__setstate__`) whenever possible. We will show, however, cases where using
477477
:meth:`__reduce__` is the only option or leads to more efficient pickling or
478478
both.
479479

480-
The interface is currently defined as follow. The :meth:`__reduce__` method
480+
The interface is currently defined as follows. The :meth:`__reduce__` method
481481
takes no argument and shall return either a string or preferably a tuple (the
482-
returned object is often refered as the "reduce value").
482+
returned object is often referred to as the "reduce value").
483483

484484
If a string is returned, the string should be interpreted as the name of a
485485
global variable. It should be the object's local name relative to its module;

Doc/library/re.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ those found in Perl. The :mod:`re` module is always available.
1616
Both patterns and strings to be searched can be Unicode strings as well as
1717
8-bit strings. However, Unicode strings and 8-bit strings cannot be mixed:
1818
that is, you cannot match an Unicode string with a byte pattern or
19-
vice-versa; similarly, when asking for a substition, the replacement
19+
vice-versa; similarly, when asking for a substitution, the replacement
2020
string must be of the same type as both the pattern and the search string.
2121

2222
Regular expressions use the backslash character (``'\'``) to indicate

0 commit comments

Comments
 (0)