Skip to content

Commit 0d70227

Browse files
tirkarthiencukou
authored andcommitted
Fix typos in docs and docstrings (GH-13745)
1 parent e584cbf commit 0d70227

File tree

15 files changed

+16
-16
lines changed

15 files changed

+16
-16
lines changed

Doc/library/dis.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ iterations of the loop.
708708

709709
Cleans up the value stack and the block stack. If *preserve_tos* is not
710710
``0`` TOS first is popped from the stack and pushed on the stack after
711-
perfoming other stack operations:
711+
performing other stack operations:
712712

713713
* If TOS is ``NULL`` or an integer (pushed by :opcode:`BEGIN_FINALLY`
714714
or :opcode:`CALL_FINALLY`) it is popped from the stack.

Doc/using/windows.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ Customizing default Python versions
815815
In some cases, a version qualifier can be included in a command to dictate
816816
which version of Python will be used by the command. A version qualifier
817817
starts with a major version number and can optionally be followed by a period
818-
('.') and a minor version specifier. Furthermore it is possible to specifiy
818+
('.') and a minor version specifier. Furthermore it is possible to specify
819819
if a 32 or 64 bit implementation shall be requested by adding "-32" or "-64".
820820

821821
For example, a shebang line of ``#!python`` has no version qualifier, while

Doc/whatsnew/3.8.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ Changes in the C API
12861286
(Contributed by Zackery Spytz in :issue:`33407`.)
12871287

12881288
* The interpreter does not pretend to support binary compatibility of
1289-
extension types accross feature releases, anymore. A :c:type:`PyTypeObject`
1289+
extension types across feature releases, anymore. A :c:type:`PyTypeObject`
12901290
exported by a third-party extension module is supposed to have all the
12911291
slots expected in the current Python version, including
12921292
:c:member:`~PyTypeObject.tp_finalize` (:const:`Py_TPFLAGS_HAVE_FINALIZE`

Lib/asyncio/unix_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ async def _make_subprocess_transport(self, protocol, args, shell,
193193
# prevents subprocess execution if the watcher
194194
# is not ready to handle it.
195195
raise RuntimeError("asyncio.get_child_watcher() is not activated, "
196-
"subproccess support is not installed.")
196+
"subprocess support is not installed.")
197197
waiter = self.create_future()
198198
transp = _UnixSubprocessTransport(self, protocol, args, shell,
199199
stdin, stdout, stderr, bufsize,

Lib/bdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def set_break(self, filename, lineno, temporary=False, cond=None,
384384
return None
385385

386386
def _prune_breaks(self, filename, lineno):
387-
"""Prune breakpoints for filname:lineno.
387+
"""Prune breakpoints for filename:lineno.
388388
389389
A list of breakpoints is maintained in the Bdb instance and in
390390
the Breakpoint class. If a breakpoint in the Bdb instance no

Lib/distutils/ccompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def compile(self, sources, output_dir=None, macros=None,
545545
'extra_preargs' and 'extra_postargs' are implementation- dependent.
546546
On platforms that have the notion of a command-line (e.g. Unix,
547547
DOS/Windows), they are most likely lists of strings: extra
548-
command-line arguments to prepand/append to the compiler command
548+
command-line arguments to prepend/append to the compiler command
549549
line. On other platforms, consult the implementation class
550550
documentation. In any event, they are intended as an escape hatch
551551
for those occasions when the abstract compiler framework doesn't

Lib/email/_header_value_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2385,7 +2385,7 @@ def parse_mime_parameters(value):
23852385
the formal RFC grammar, but it is more convenient for us for the set of
23862386
parameters to be treated as its own TokenList.
23872387
2388-
This is 'parse' routine because it consumes the reminaing value, but it
2388+
This is 'parse' routine because it consumes the remaining value, but it
23892389
would never be called to parse a full header. Instead it is called to
23902390
parse everything after the non-parameter value of a specific MIME header.
23912391

Lib/encodings/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* getregentry() -> codecs.CodecInfo object
1313
The getregentry() API must return a CodecInfo object with encoder, decoder,
1414
incrementalencoder, incrementaldecoder, streamwriter and streamreader
15-
atttributes which adhere to the Python Codec Interface Standard.
15+
attributes which adhere to the Python Codec Interface Standard.
1616
1717
In addition, a module may optionally also define the following
1818
APIs which are then used by the package's codec search function:

Lib/lib2to3/fixes/fix_metaclass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Fixer for __metaclass__ = X -> (metaclass=X) methods.
22
3-
The various forms of classef (inherits nothing, inherits once, inherints
3+
The various forms of classef (inherits nothing, inherits once, inherits
44
many) don't parse the same in the CST so we look at ALL classes for
55
a __metaclass__ and if we find one normalize the inherits to all be
66
an arglist.

Lib/pstats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,12 +632,12 @@ def do_EOF(self, line):
632632
print("", file=self.stream)
633633
return 1
634634
def help_EOF(self):
635-
print("Leave the profile brower.", file=self.stream)
635+
print("Leave the profile browser.", file=self.stream)
636636

637637
def do_quit(self, line):
638638
return 1
639639
def help_quit(self):
640-
print("Leave the profile brower.", file=self.stream)
640+
print("Leave the profile browser.", file=self.stream)
641641

642642
def do_read(self, line):
643643
if line:

Lib/pyclbr.py

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

5151

5252
class _Object:
53-
"Informaton about Python class or function."
53+
"Information about Python class or function."
5454
def __init__(self, module, name, file, lineno, parent):
5555
self.module = module
5656
self.name = name

Lib/ssl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ def server_side(self):
862862
@property
863863
def server_hostname(self):
864864
"""The currently set server hostname (for SNI), or ``None`` if no
865-
server hostame is set."""
865+
server hostname is set."""
866866
return self._sslobj.server_hostname
867867

868868
def read(self, len=1024, buffer=None):

Lib/turtle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ def numinput(self, title, prompt, default=None, minval=None, maxval=None):
833833
Arguments: title is the title of the dialog window,
834834
prompt is a text mostly describing what numerical information to input.
835835
default: default value
836-
minval: minimum value for imput
836+
minval: minimum value for input
837837
maxval: maximum value for input
838838
839839
The number input must be in the range minval .. maxval if these are

Lib/turtledemo/paint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
- left mouse button moves turtle
99
- middle mouse button changes color
10-
- right mouse button toogles betweem pen up
10+
- right mouse button toggles between pen up
1111
(no line drawn when the turtle moves) and
1212
pen down (line is drawn). If pen up follows
1313
at least two pen-down moves, the polygon that

Lib/zipfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2163,7 +2163,7 @@ class Path:
21632163
>>> (b / 'missing.txt').exists()
21642164
False
21652165
2166-
Coersion to string:
2166+
Coercion to string:
21672167
21682168
>>> str(c)
21692169
'abcde.zip/b/c.txt'

0 commit comments

Comments
 (0)