Skip to content

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

Lines changed: 37 additions & 37 deletions

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

0 commit comments

Comments
 (0)