Skip to content

Commit 90f3673

Browse files
committed
fix various doc typos #3320
1 parent 9c87a40 commit 90f3673

20 files changed

Lines changed: 35 additions & 35 deletions

Doc/c-api/conversion.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ The following functions provide locale-independent string to number conversions.
8989

9090
.. cfunction:: char * PyOS_stricmp(char *s1, char *s2)
9191

92-
Case insensitive comparsion of strings. The functions works almost
93-
identical to :cfunc:`strcmp` except that it ignores the case.
92+
Case insensitive comparison of strings. The function works almost
93+
identically to :cfunc:`strcmp` except that it ignores the case.
9494

9595
.. versionadded:: 2.6
9696

9797

9898
.. cfunction:: char * PyOS_strnicmp(char *s1, char *s2, Py_ssize_t size)
9999

100-
Case insensitive comparsion of strings. The functions works almost
101-
identical to :cfunc:`strncmp` except that it ignores the case.
100+
Case insensitive comparison of strings. The function works almost
101+
identically to :cfunc:`strncmp` except that it ignores the case.
102102

103103
.. versionadded:: 2.6

Doc/extending/windows.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ C++.
2323

2424
This chapter mentions a number of filenames that include an encoded Python
2525
version number. These filenames are represented with the version number shown
26-
as ``XY``; in practive, ``'X'`` will be the major version number and ``'Y'``
26+
as ``XY``; in practice, ``'X'`` will be the major version number and ``'Y'``
2727
will be the minor version number of the Python release you're working with. For
2828
example, if you are using Python 2.2.1, ``XY`` will actually be ``22``.
2929

Doc/library/__future__.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
* To document when incompatible changes were introduced, and when they will be
1818
--- or were --- made mandatory. This is a form of executable documentation, and
19-
can be inspected programatically via importing :mod:`__future__` and examining
19+
can be inspected programmatically via importing :mod:`__future__` and examining
2020
its contents.
2121

2222
Each statement in :file:`__future__.py` is of the form::

Doc/library/ftplib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
316316

317317
Send a ``QUIT`` command to the server and close the connection. This is the
318318
"polite" way to close a connection, but it may raise an exception of the server
319-
reponds with an error to the ``QUIT`` command. This implies a call to the
319+
responds with an error to the ``QUIT`` command. This implies a call to the
320320
:meth:`close` method which renders the :class:`FTP` instance useless for
321321
subsequent calls (see below).
322322

Doc/library/functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ There are several built-in functions that are no longer essential to learn, know
13891389
or use in modern Python programming. They have been kept here to maintain
13901390
backwards compatibility with programs written for older versions of Python.
13911391

1392-
Python programmers, trainers, students and bookwriters should feel free to
1392+
Python programmers, trainers, students and book writers should feel free to
13931393
bypass these functions without concerns about missing something important.
13941394

13951395

Doc/library/imputil.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ This is a re-implementation of hierarchical module import.
108108
This code is intended to be read, not executed. However, it does work
109109
-- all you need to do to enable it is "import knee".
110110

111-
(The name is a pun on the klunkier predecessor of this module, "ni".)
111+
(The name is a pun on the clunkier predecessor of this module, "ni".)
112112

113113
::
114114

Doc/library/macosa.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ MacPython OSA Modules
66
*********************
77

88
This chapter describes the current implementation of the Open Scripting
9-
Architecure (OSA, also commonly referred to as AppleScript) for Python, allowing
10-
you to control scriptable applications from your Python program, and with a
11-
fairly pythonic interface. Development on this set of modules has stopped, and a
12-
replacement is expected for Python 2.5.
9+
Architecture (OSA, also commonly referred to as AppleScript) for Python,
10+
allowing you to control scriptable applications from your Python program,
11+
and with a fairly pythonic interface. Development on this set of modules has
12+
stopped, and a replacement is expected for Python 2.5.
1313

1414
For a description of the various components of AppleScript and OSA, and to get
1515
an understanding of the architecture and terminology, you should read Apple's

Doc/library/multiprocessing.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ However, if you really do need to use some shared data then
160160

161161
The ``'d'`` and ``'i'`` arguments used when creating ``num`` and ``arr`` are
162162
typecodes of the kind used by the :mod:`array` module: ``'d'`` indicates a
163-
double precision float and ``'i'`` inidicates a signed integer. These shared
163+
double precision float and ``'i'`` indicates a signed integer. These shared
164164
objects will be process and thread safe.
165165

166166
For more flexibility in using shared memory one can use the
@@ -784,7 +784,7 @@ object -- see :ref:`multiprocessing-managers`.
784784

785785
A bounded semaphore object: a clone of :class:`threading.BoundedSemaphore`.
786786

787-
(On Mac OSX this is indistiguishable from :class:`Semaphore` because
787+
(On Mac OSX this is indistinguishable from :class:`Semaphore` because
788788
``sem_getvalue()`` is not implemented on that platform).
789789

790790
.. class:: Condition([lock])
@@ -893,8 +893,8 @@ processes.
893893

894894
.. note::
895895

896-
Although it is posible to store a pointer in shared memory remember that this
897-
will refer to a location in the address space of a specific process.
896+
Although it is possible to store a pointer in shared memory remember that
897+
this will refer to a location in the address space of a specific process.
898898
However, the pointer is quite likely to be invalid in the context of a second
899899
process and trying to dereference the pointer from the second process may
900900
cause a crash.
@@ -1776,7 +1776,7 @@ handler type) for messages from different processes to get mixed up.
17761776
handler which sends output to :data:`sys.stderr` using format
17771777
``'[%(levelname)s/%(processName)s] %(message)s'``. (The logger allows use of
17781778
the non-standard ``'%(processName)s'`` format.) Message sent to this logger
1779-
will not by default propogate to the root logger.
1779+
will not by default propagate to the root logger.
17801780

17811781
Note that on Windows child processes will only inherit the level of the
17821782
parent process's logger -- any other customization of the logger will not be

Doc/library/operator.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ Python syntax and the functions in the :mod:`operator` module.
630630
+-----------------------+-------------------------+---------------------------------+
631631
| Right Shift | ``a >> b`` | ``rshift(a, b)`` |
632632
+-----------------------+-------------------------+---------------------------------+
633-
| Sequence Repitition | ``seq * i`` | ``repeat(seq, i)`` |
633+
| Sequence Repetition | ``seq * i`` | ``repeat(seq, i)`` |
634634
+-----------------------+-------------------------+---------------------------------+
635635
| Slice Assignment | ``seq[i:j] = values`` | ``setslice(seq, i, j, values)`` |
636636
+-----------------------+-------------------------+---------------------------------+

Doc/library/select.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2
338338
+---------------------------+---------------------------------------------+
339339
| :const:`KQ_EV_DISABLE` | Disablesevent |
340340
+---------------------------+---------------------------------------------+
341-
| :const:`KQ_EV_ONESHOT` | Removes event after first occurence |
341+
| :const:`KQ_EV_ONESHOT` | Removes event after first occurrence |
342342
+---------------------------+---------------------------------------------+
343343
| :const:`KQ_EV_CLEAR` | Reset the state after an event is retrieved |
344344
+---------------------------+---------------------------------------------+
@@ -373,7 +373,7 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2
373373
+============================+============================================+
374374
| :const:`KQ_NOTE_DELETE` | *unlink()* was called |
375375
+----------------------------+--------------------------------------------+
376-
| :const:`KQ_NOTE_WRITE` | a write occured |
376+
| :const:`KQ_NOTE_WRITE` | a write occurred |
377377
+----------------------------+--------------------------------------------+
378378
| :const:`KQ_NOTE_EXTEND` | the file was extended |
379379
+----------------------------+--------------------------------------------+

0 commit comments

Comments
 (0)