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

Skip to content

Commit 8b852f1

Browse files
committed
Fix Issue #21528 - Fix documentation typos
1 parent 1c4398f commit 8b852f1

32 files changed

Lines changed: 43 additions & 43 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/pyporting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ If your project is on the Cheeseshop_/PyPI_, make sure it has the proper
6060
`trove classifiers`_ to signify what versions of Python it **currently**
6161
supports. At minimum you should specify the major version(s), e.g.
6262
``Programming Language :: Python :: 2`` if your project currently only supports
63-
Python 2. It is preferrable that you be as specific as possible by listing every
63+
Python 2. It is preferable that you be as specific as possible by listing every
6464
major/minor version of Python that you support, e.g. if your project supports
6565
Python 2.6 and 2.7, then you want the classifiers of::
6666

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
@@ -1873,7 +1873,7 @@ Customizing file parsing
18731873

18741874
Arguments that are read from a file (see the *fromfile_prefix_chars*
18751875
keyword argument to the :class:`ArgumentParser` constructor) are read one
1876-
argument per line. :meth:`convert_arg_line_to_args` can be overriden for
1876+
argument per line. :meth:`convert_arg_line_to_args` can be overridden for
18771877
fancier reading.
18781878

18791879
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
@@ -252,7 +252,7 @@ immediate playback::
252252
'Move turtle to an absolute position with changing orientation. GOTO 100 200'
253253
goto(*parse(arg))
254254
def do_home(self, arg):
255-
'Return turtle to the home postion: HOME'
255+
'Return turtle to the home position: HOME'
256256
home()
257257
def do_circle(self, arg):
258258
'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
@@ -986,7 +986,7 @@ semantics pass-in keyword arguments using a regular unordered dictionary.
986986
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
987987

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

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

0 commit comments

Comments
 (0)