8000 Fix typos in docs and docstrings by tirkarthi · Pull Request #13745 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Fix typos in docs and docstrings #13745

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/library/dis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ iterations of the loop.

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

* If TOS is ``NULL`` or an integer (pushed by :opcode:`BEGIN_FINALLY`
or :opcode:`CALL_FINALLY`) it is popped from the stack.
Expand Down
2 changes: 1 addition & 1 deletion Doc/using/windows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ Customizing default Python versions
In some cases, a version qualifier can be included in a command to dictate
which version of Python will be used by the command. A version qualifier
starts with a major version number and can optionally be followed by a period
('.') and a minor version specifier. Furthermore it is possible to specifiy
('.') and a minor version specifier. Furthermore it is possible to specify
if a 32 or 64 bit implementation shall be requested by adding "-32" or "-64".

For example, a shebang line of ``#!python`` has no version qualifier, while
Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.8.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ Changes in the C API
(Contributed by Zackery Spytz in :issue:`33407`.)

* The interpreter does not pretend to support binary compatibility of
extension types accross feature releases, anymore. A :c:type:`PyTypeObject`
extension types across feature releases, anymore. A :c:type:`PyTypeObject`
exported by a third-party extension module is supposed to have all the
slots expected in the current Python version, including
:c:member:`~PyTypeObject.tp_finalize` (:const:`Py_TPFLAGS_HAVE_FINALIZE`
Expand Down
2 changes: 1 addition & 1 deletion Lib/asyncio/unix_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async def _make_subprocess_transport(self, protocol, args, shell,
# prevents subprocess execution if the watcher
# is not ready to handle it.
raise RuntimeError("asyncio.get_child_watcher() is not activated, "
"subproccess support is not installed.")
"subprocess support is not installed.")
waiter = self.create_future()
transp = _UnixSubprocessTransport(self, protocol, args, shell,
stdin, stdout, stderr, bufsize,
Expand Down
2 changes: 1 addition & 1 deletion Lib/bdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def set_break(self, filename, lineno, temporary=False, cond=None,
return None

def _prune_breaks(self, filename, lineno):
"""Prune breakpoints for filname:lineno.
"""Prune breakpoints for filename:lineno.

A list of breakpoints is maintained in the Bdb instance and in
the Breakpoint class. If a breakpoint in the Bdb instance no
Expand Down
2 changes: 1 addition & 1 deletion Lib/distutils/ccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def compile(self, sources, output_dir=None, macros=None,
'extra_preargs' and 'extra_postargs' are implementation- dependent.
On platforms that have the notion of a command-line (e.g. Unix,
DOS/Windows), they are most likely lists of strings: extra
command-line arguments to prepand/append to the compiler command
command-line arguments to prepend/append to the compiler command
line. On other platforms, consult the implementation class
documentation. In any event, they are intended as an escape hatch
for those occasions when the abstract compiler framework doesn't
Expand Down
2 changes: 1 addition & 1 deletion Lib/email/_header_value_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2385,7 +2385,7 @@ def parse_mime_parameters(value):
the formal RFC grammar, but it is more convenient for us for the set of
parameters to be treated as its own TokenList.

This is 'parse' routine because it consumes the reminaing value, but it
This is 'parse' routine because it consumes the remaining value, but it
would never be called to parse a full header. Instead it is called to
parse everything after the non-parameter value of a specific MIME header.

Expand Down
2 changes: 1 addition & 1 deletion Lib/encodings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* getregentry() -> codecs.CodecInfo object
The getregentry() API must return a CodecInfo object with encoder, decoder,
incrementalencoder, incrementaldecoder, streamwriter and streamreader
atttributes which adhere to the Python Codec Interface Standard.
attributes which adhere to the Python Codec Interface Standard.

In addition, a module may optionally also define the following
APIs which are then used by the package's codec search function:
Expand Down
2 changes: 1 addition & 1 deletion Lib/lib2to3/fixes/fix_metaclass.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Fixer for __metaclass__ = X -> (metaclass=X) methods.

The various forms of classef (inherits nothing, inherits once, inherints
The various forms of classef (inherits nothing, inherits once, inherits
many) don't parse the same in the CST so we look at ALL classes for
a __metaclass__ and if we find one normalize the inherits to all be
an arglist.
Expand Down
4 changes: 2 additions & 2 deletions Lib/pstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,12 +632,12 @@ def do_EOF(self, line):
print("", file=self.stream)
return 1
def help_EOF(self):
print("Leave the profile brower.", file=self.stream)
print("Leave the profile browser.", file=self.stream)

def do_quit(self, line):
return 1
def help_quit(self):
print("Leave the profile brower.", file=self.stream)
print("Leave the profile browser.", file=self.stream)

def do_read(self, line):
if line:
Expand Down
2 changes: 1 addition & 1 deletion Lib/pyclbr.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@


class _Object:
"Informaton about Python class or function."
"Information about Python class or function."
def __init__(self, module, name, file, lineno, parent):
self.module = module
self.name = name
Expand Down
2 changes: 1 addition & 1 deletion Lib/ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ def server_side(self):
@property
def server_hostname(self):
"""The currently set server hostname (for SNI), or ``None`` if no
server hostame is set."""
server hostname is set."""
return self._sslobj.server_hostname

def read(self, len=1024, buffer=None):
Expand Down
2 changes: 1 addition & 1 deletion Lib/turtle.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ def numinput(self, title, prompt, default=None, minval=None, maxval=None):
Arguments: title is the title of the dialog window,
prompt is a text mostly describing what numerical information to input.
default: default value
minval: minimum value for imput
minval: minimum value for input
maxval: maximum value for input

The number input must be in the range minval .. maxval if these are
Expand Down
2 changes: 1 addition & 1 deletion Lib/turtledemo/paint.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

- left mouse button moves turtle
- middle mouse button changes color
- right mouse button toogles betweem pen up
- right mouse button toggles between pen up
(no line drawn when the turtle moves) and
pen down (line is drawn). If pen up follows
at least two pen-down moves, the polygon that
Expand Down
2 changes: 1 addition & 1 deletion Lib/zipfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2163,7 +2163,7 @@ class Path:
>>> (b / 'missing.txt').exists()
False

Coersion to string:
Coercion to string:

>>> str(c)
'abcde.zip/b/c.txt'
Expand Down
0