Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit b4760ef

Browse files
committed
Back porting changeset db302b88fdb6 to 3.4 branch, which fixed multiple documentation typos.
Related Issues: #issue21528 #issue24453
1 parent 1c90670 commit b4760ef

28 files changed

+37
-37
lines changed

Doc/distutils/apiref.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,13 +1099,13 @@ other utility module.
10991099
during the build of Python), not the OS version of the current system.
11001100

11011101
For universal binary builds on Mac OS X the architecture value reflects
1102-
the univeral binary status instead of the architecture of the current
1102+
the universal binary status instead of the architecture of the current
11031103
processor. For 32-bit universal binaries the architecture is ``fat``,
11041104
for 64-bit universal binaries the architecture is ``fat64``, and
11051105
for 4-way universal binaries the architecture is ``universal``. Starting
11061106
from Python 2.7 and Python 3.2 the architecture ``fat3`` is used for
11071107
a 3-way universal build (ppc, i386, x86_64) and ``intel`` is used for
1108-
a univeral build with the i386 and x86_64 architectures
1108+
a universal build with the i386 and x86_64 architectures
11091109

11101110
Examples of returned values on Mac OS X:
11111111

Doc/distutils/builtdist.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ support this option, so the command::
355355
would create a 64bit installation executable on your 32bit version of Windows.
356356

357357
To cross-compile, you must download the Python source code and cross-compile
358-
Python itself for the platform you are targetting - it is not possible from a
358+
Python itself for the platform you are targeting - it is not possible from a
359359
binary installation of Python (as the .lib etc file for other platforms are
360360
not included.) In practice, this means the user of a 32 bit operating
361361
system will need to use Visual Studio 2008 to open the

Doc/howto/clinic.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ Argument Clinic generates code that does it for you (in the parsing function).
886886
Advanced converters
887887
-------------------
888888

889-
Remeber those format units you skipped for your first
889+
Remember those format units you skipped for your first
890890
time because they were advanced? Here's how to handle those too.
891891

892892
The trick is, all those format units take arguments--either
@@ -1020,12 +1020,12 @@ any of the default arguments you can omit the parentheses.
10201020
the ``"as"`` should come before the return converter.)
10211021

10221022
There's one additional complication when using return converters: how do you
1023-
indicate an error has occured? Normally, a function returns a valid (non-``NULL``)
1023+
indicate an error has occurred? Normally, a function returns a valid (non-``NULL``)
10241024
pointer for success, and ``NULL`` for failure. But if you use an integer return converter,
10251025
all integers are valid. How can Argument Clinic detect an error? Its solution: each return
10261026
converter implicitly looks for a special value that indicates an error. If you return
10271027
that value, and an error has been set (``PyErr_Occurred()`` returns a true
1028-
value), then the generated code will propogate the error. Otherwise it will
1028+
value), then the generated code will propagate the error. Otherwise it will
10291029
encode the value you return like normal.
10301030

10311031
Currently Argument Clinic supports only a few return converters::
@@ -1573,7 +1573,7 @@ The fourth new directive is ``set``::
15731573
``line_prefix`` is a string that will be prepended to every line of Clinic's output;
15741574
``line_suffix`` is a string that will be appended to every line of Clinic's output.
15751575

1576-
Both of these suport two format strings:
1576+
Both of these support two format strings:
15771577

15781578
``{block comment start}``
15791579
Turns into the string ``/*``, the start-comment text sequence for C files.

Doc/howto/regex.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ keep track of the group numbers. There are two features which help with this
852852
problem. Both of them use a common syntax for regular expression extensions, so
853853
we'll look at that first.
854854

855-
Perl 5 is well-known for its powerful additions to standard regular expressions.
855+
Perl 5 is well known for its powerful additions to standard regular expressions.
856856
For these new features the Perl developers couldn't choose new single-keystroke metacharacters
857857
or new special sequences beginning with ``\`` without making Perl's regular
858858
expressions confusingly different from standard REs. If they chose ``&`` as a

Doc/howto/sockets.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ messages to be sent back to back (without some kind of reply), and you pass
234234
following message. You'll need to put that aside and hold onto it, until it's
235235
needed.
236236

237-
Prefixing the message with it's length (say, as 5 numeric characters) gets more
237+
Prefixing the message with its length (say, as 5 numeric characters) gets more
238238
complex, because (believe it or not), you may not get all 5 characters in one
239239
``recv``. In playing around, you'll get away with it; but in high network loads,
240240
your code will very quickly break unless you use two ``recv`` loops - the first

Doc/library/argparse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1910,7 +1910,7 @@ Customizing file parsing
19101910

19111911
Arguments that are read from a file (see the *fromfile_prefix_chars*
19121912
keyword argument to the :class:`ArgumentParser` constructor) are read one
1913-
argument per line. :meth:`convert_arg_line_to_args` can be overriden for
1913+
argument per line. :meth:`convert_arg_line_to_args` can be overridden for
19141914
fancier reading.
19151915

19161916
This method takes a single argument *arg_line* which is a string read from

Doc/library/cmd.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ immediate playback::
259259
'Move turtle to an absolute position with changing orientation. GOTO 100 200'
260260
goto(*parse(arg))
261261
def do_home(self, arg):
262-
'Return turtle to the home postion: HOME'
262+
'Return turtle to the home position: HOME'
263263
home()
264264
def do_circle(self, arg):
265265
'Draw circle with given radius an options extent and steps: CIRCLE 50'

Doc/library/collections.abc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Notes on using :class:`Set` and :class:`MutableSet` as a mixin:
179179
(3)
180180
The :class:`Set` mixin provides a :meth:`_hash` method to compute a hash value
181181
for the set; however, :meth:`__hash__` is not defined because not all sets
182-
are hashable or immutable. To add set hashabilty using mixins,
182+
are hashable or immutable. To add set hashability using mixins,
183183
inherit from both :meth:`Set` and :meth:`Hashable`, then define
184184
``__hash__ = Set._hash``.
185185

Doc/library/collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ semantics pass-in keyword arguments using a regular unordered dictionary.
987987
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
988988

989989
Since an ordered dictionary remembers its insertion order, it can be used
990-
in conjuction with sorting to make a sorted dictionary::
990+
in conjunction with sorting to make a sorted dictionary::
991991

992992
>>> # regular unsorted dictionary
993993
>>> d = {'banana': 3, 'apple':4, 'pear': 1, 'orange': 2}

Doc/library/configparser.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ However, there are a few differences that should be taken into account:
386386
* All sections include ``DEFAULTSECT`` values as well which means that
387387
``.clear()`` on a section may not leave the section visibly empty. This is
388388
because default values cannot be deleted from the section (because technically
389-
they are not there). If they are overriden in the section, deleting causes
389+
they are not there). If they are overridden in the section, deleting causes
390390
the default value to be visible again. Trying to delete a default value
391391
causes a ``KeyError``.
392392

@@ -667,7 +667,7 @@ the :meth:`__init__` options:
667667

668668
More advanced customization may be achieved by overriding default values of
669669
these parser attributes. The defaults are defined on the classes, so they
670-
may be overriden by subclasses or by attribute assignment.
670+
may be overridden by subclasses or by attribute assignment.
671671

672672
.. attribute:: BOOLEAN_STATES
673673

Doc/library/http.server.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ of which this module provides three different variants:
232232

233233
.. method:: send_response_only(code, message=None)
234234

235-
Sends the reponse header only, used for the purposes when ``100
235+
Sends the response header only, used for the purposes when ``100
236236
Continue`` response is sent by the server to the client. The headers not
237237
buffered and sent directly the output stream.If the *message* is not
238238
specified, the HTTP message corresponding the response *code* is sent.

Doc/library/ipaddress.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ write code that handles both IP versions correctly.
103103
1. A string in decimal-dot notation, consisting of four decimal integers in
104104
the inclusive range 0-255, separated by dots (e.g. ``192.168.0.1``). Each
105105
integer represents an octet (byte) in the address. Leading zeroes are
106-
tolerated only for values less then 8 (as there is no ambiguity
106+
tolerated only for values less than 8 (as there is no ambiguity
107107
between the decimal and octal interpretations of such strings).
108108
2. An integer that fits into 32 bits.
109109
3. An integer packed into a :class:`bytes` object of length 4 (most

Doc/library/logging.handlers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ sends logging output to a network socket. The base class uses a TCP socket.
436436
.. method:: createSocket()
437437

438438
Tries to create a socket; on failure, uses an exponential back-off
439-
algorithm. On intial failure, the handler will drop the message it was
439+
algorithm. On initial failure, the handler will drop the message it was
440440
trying to send. When subsequent messages are handled by the same
441441
instance, it will not try connecting until some time has passed. The
442442
default parameters are such that the initial delay is one second, and if

Doc/library/plistlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ The following functions are deprecated:
129129
and binary) file object. Returns the unpacked root object (which usually
130130
is a dictionary).
131131

132-
This function calls :func:`load` to do the actual work, the the documentation
132+
This function calls :func:`load` to do the actual work, see the documentation
133133
of :func:`that function <load>` for an explanation of the keyword arguments.
134134

135135
.. note::

Doc/library/resource.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ this module for those platforms.
4545

4646
.. data:: RLIM_INFINITY
4747

48-
Constant used to represent the the limit for an unlimited resource.
48+
Constant used to represent the limit for an unlimited resource.
4949

5050

5151
.. function:: getrlimit(resource)

Doc/library/select.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ object.
207207
.. warning::
208208

209209
Registering a file descriptor that's already registered is not an
210-
error, but the result is undefined. The appropiate action is to
210+
error, but the result is undefined. The appropriate action is to
211211
unregister or modify it first. This is an important difference
212212
compared with :c:func:`poll`.
213213

Doc/library/shutil.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ Directory and files operations
338338

339339
On Windows, the current directory is always prepended to the *path* whether
340340
or not you use the default or provide your own, which is the behavior the
341-
command shell uses when finding executables. Additionaly, when finding the
341+
command shell uses when finding executables. Additionally, when finding the
342342
*cmd* in the *path*, the ``PATHEXT`` environment variable is checked. For
343343
example, if you call ``shutil.which("python")``, :func:`which` will search
344344
``PATHEXT`` to know that it should look for ``python.exe`` within the *path*

Doc/library/site.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Module contents
184184
unless the Python interpreter was started with the :option:`-S` flag.
185185

186186
.. versionchanged:: 3.3
187-
This function used to be called unconditionnally.
187+
This function used to be called unconditionally.
188188

189189

190190
.. function:: addsitedir(sitedir, known_paths=None)

Doc/library/socket.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ After binding (:const:`CAN_RAW`) or connecting (:const:`CAN_BCM`) the socket, yo
14491449
can use the :meth:`socket.send`, and the :meth:`socket.recv` operations (and
14501450
their counterparts) on the socket object as usual.
14511451

1452-
This example might require special priviledge::
1452+
This example might require special privileges::
14531453

14541454
import socket
14551455
import struct

Doc/library/threading.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ item to the buffer only needs to wake up one consumer thread.
630630
cv.wait()
631631

632632
Therefore, the same rules apply as with :meth:`wait`: The lock must be
633-
held when called and is re-aquired on return. The predicate is evaluated
633+
held when called and is re-acquired on return. The predicate is evaluated
634634
with the lock held.
635635

636636
.. versionadded:: 3.2

Doc/library/tkinter.ttk.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ Ttk Styling
11671167
Each widget in :mod:`ttk` is assigned a style, which specifies the set of
11681168
elements making up the widget and how they are arranged, along with dynamic
11691169
and default settings for element options. By default the style name is the
1170-
same as the widget's class name, but it may be overriden by the widget's style
1170+
same as the widget's class name, but it may be overridden by the widget's style
11711171
option. If you don't know the class name of a widget, use the method
11721172
:meth:`Misc.winfo_class` (somewidget.winfo_class()).
11731173

Doc/library/tracemalloc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ Functions
350350
the *nframe* parameter of the :func:`start` function to store more frames.
351351

352352
The :mod:`tracemalloc` module must be tracing memory allocations to take a
353-
snapshot, see the the :func:`start` function.
353+
snapshot, see the :func:`start` function.
354354

355355
See also the :func:`get_object_traceback` function.
356356

Doc/library/turtle.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,7 +1809,7 @@ Input methods
18091809

18101810
Pop up a dialog window for input of a number. title is the title of the
18111811
dialog window, prompt is a text mostly describing what numerical information
1812-
to input. default: default value, minval: minimum value for imput,
1812+
to input. default: default value, minval: minimum value for input,
18131813
maxval: maximum value for input
18141814
The number input must be in the range minval .. maxval if these are
18151815
given. If not, a hint is issued and the dialog remains open for
@@ -2402,7 +2402,7 @@ Changes since Python 3.0
24022402
Accordingly the latter has got an alias: :meth:`Screen.onkeyrelease`.
24032403

24042404
- The method :meth:`Screen.mainloop` has been added. So when working only
2405-
with Screen and Turtle objects one must not additonally import
2405+
with Screen and Turtle objects one must not additionally import
24062406
:func:`mainloop` anymore.
24072407

24082408
- Two input methods has been added :meth:`Screen.textinput` and

Doc/library/urllib.request.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The :mod:`urllib.request` module defines the following functions:
6868
:class:`http.client.HTTPResponse` object which has the following
6969
:ref:`httpresponse-objects` methods.
7070

71-
For ftp, file, and data urls and requests explicity handled by legacy
71+
For ftp, file, and data urls and requests explicitly handled by legacy
7272
:class:`URLopener` and :class:`FancyURLopener` classes, this function
7373
returns a :class:`urllib.response.addinfourl` object which can work as
7474
:term:`context manager` and has methods such as

Doc/library/weakref.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,8 @@ third party, such as running code when a module is unloaded::
566566

567567
.. note::
568568

569-
If you create a finalizer object in a daemonic thread just as the
570-
the program exits then there is the possibility that the finalizer
569+
If you create a finalizer object in a daemonic thread just as the program
570+
exits then there is the possibility that the finalizer
571571
does not get called at exit. However, in a daemonic thread
572572
:func:`atexit.register`, ``try: ... finally: ...`` and ``with: ...``
573573
do not guarantee that cleanup occurs either.

Doc/library/xml.dom.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ objects:
412412
.. method:: NodeList.item(i)
413413

414414
Return the *i*'th item from the sequence, if there is one, or ``None``. The
415-
index *i* is not allowed to be less then zero or greater than or equal to the
415+
index *i* is not allowed to be less than zero or greater than or equal to the
416416
length of the sequence.
417417

418418

Doc/whatsnew/2.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ comparison. I won't cover the C API here, but will refer you to PEP 207, or to
219219

220220
.. seealso::
221221

222-
:pep:`207` - Rich Comparisions
222+
:pep:`207` - Rich Comparisons
223223
Written by Guido van Rossum, heavily based on earlier work by David Ascher, and
224224
implemented by Guido van Rossum.
225225

Doc/whatsnew/3.3.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ os
15791579
avoid race conditions in multi-threaded programs.
15801580

15811581
* The :mod:`os` module has a new :func:`~os.sendfile` function which provides
1582-
an efficent "zero-copy" way for copying data from one file (or socket)
1582+
an efficient "zero-copy" way for copying data from one file (or socket)
15831583
descriptor to another. The phrase "zero-copy" refers to the fact that all of
15841584
the copying of data between the two descriptors is done entirely by the
15851585
kernel, with no copying of data into userspace buffers. :func:`~os.sendfile`
@@ -1908,7 +1908,7 @@ socketserver
19081908
:meth:`~socketserver.BaseServer.service_actions` that is called by the
19091909
:meth:`~socketserver.BaseServer.serve_forever` method in the service loop.
19101910
:class:`~socketserver.ForkingMixIn` now uses this to clean up zombie
1911-
child proceses. (Contributed by Justin Warkentin in :issue:`11109`.)
1911+
child processes. (Contributed by Justin Warkentin in :issue:`11109`.)
19121912

19131913

19141914
sqlite3
@@ -2360,7 +2360,7 @@ Porting Python code
23602360
bytecode file, make sure to call :func:`importlib.invalidate_caches` to clear
23612361
out the cache for the finders to notice the new file.
23622362

2363-
* :exc:`ImportError` now uses the full name of the module that was attemped to
2363+
* :exc:`ImportError` now uses the full name of the module that was attempted to
23642364
be imported. Doctests that check ImportErrors' message will need to be
23652365
updated to use the full name of the module instead of just the tail of the
23662366
name.

0 commit comments

Comments
 (0)