File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ Object Calling API
185185Various functions are available for calling a Python object.
186186Each converts its arguments to a convention supported by the called object –
187187either *tp_call * or vectorcall.
188- In order to do as litle conversion as possible, pick one that best fits
188+ In order to do as little conversion as possible, pick one that best fits
189189the format of data you have available.
190190
191191The following table summarizes the available functions;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ There are two kinds of configuration:
2222* The :ref: `Isolated Configuration <init-isolated-conf >` can be used to embed
2323 Python into an application. It isolates Python from the system. For example,
2424 environments variables are ignored, the LC_CTYPE locale is left unchanged and
25- no signal handler is registred .
25+ no signal handler is registered .
2626
2727The :c:func: `Py_RunMain ` function can be used to write a customized Python
2828program.
@@ -696,7 +696,7 @@ PyConfig
696696 * Otherwise, use the :term:`locale encoding`:
697697 ``nl_langinfo(CODESET)`` result.
698698
699- At Python statup , the encoding name is normalized to the Python codec
699+ At Python startup , the encoding name is normalized to the Python codec
700700 name. For example, ``"ANSI_X3.4-1968"`` is replaced with ``"ascii"``.
701701
702702 See also the :c:member:`~PyConfig.filesystem_errors` member.
Original file line number Diff line number Diff line change @@ -714,7 +714,7 @@ Why don't generators support the with statement?
714714For technical reasons, a generator used directly as a context manager
715715would not work correctly. When, as is most common, a generator is used as
716716an iterator run to completion, no closing is needed. When it is, wrap
717- it as "contextlib.closing(generator)" in the 'with' statment .
717+ it as "contextlib.closing(generator)" in the 'with' statement .
718718
719719
720720Why are colons required for the if/while/def/class statements?
Original file line number Diff line number Diff line change @@ -1920,7 +1920,7 @@ and classes for traversing abstract syntax trees:
19201920 If source contains a null character ('\0 '), :exc: `ValueError ` is raised.
19211921
19221922 .. warning ::
1923- Note that succesfully parsing souce code into an AST object doesn't
1923+ Note that successfully parsing source code into an AST object doesn't
19241924 guarantee that the source code provided is valid Python code that can
19251925 be executed as the compilation step can raise further :exc: `SyntaxError `
19261926 exceptions. For instance, the source ``return 42 `` generates a valid
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ The modern interface provides:
152152 This version does not allow the digit 0 (zero) to the letter O (oh) and digit
153153 1 (one) to either the letter I (eye) or letter L (el) mappings, all these
154154 characters are included in the Extended Hex Alphabet and are not
155- interchangable .
155+ interchangeable .
156156
157157 .. versionadded :: 3.10
158158
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ You can control how files are opened by providing an opening hook via the
5050*openhook * parameter to :func: `fileinput.input ` or :class: `FileInput() `. The
5151hook must be a function that takes two arguments, *filename * and *mode *, and
5252returns an accordingly opened file-like object. If *encoding * and/or *errors *
53- are specified, they will be passed to the hook as aditional keyword arguments.
53+ are specified, they will be passed to the hook as additional keyword arguments.
5454This module provides a :func: `hook_compressed ` to support compressed files.
5555
5656The following function is the primary interface of this module:
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ function::
255255Package distributions
256256---------------------
257257
258- A convience method to resolve the distribution or
258+ A convenience method to resolve the distribution or
259259distributions (in the case of a namespace package) for top-level
260260Python packages or modules::
261261
Original file line number Diff line number Diff line change @@ -1249,7 +1249,7 @@ The :mod:`test.support.threading_helper` module provides support for threading t
12491249 Context manager catching :class: `threading.Thread ` exception using
12501250 :func: `threading.excepthook `.
12511251
1252- Attributes set when an exception is catched :
1252+ Attributes set when an exception is caught :
12531253
12541254 * ``exc_type ``
12551255 * ``exc_value ``
@@ -1458,7 +1458,7 @@ The :mod:`test.support.os_helper` module provides support for os tests.
14581458.. function :: unlink(filename)
14591459
14601460 Call :func: `os.unlink ` on *filename *. On Windows platforms, this is
1461- wrapped with a wait loop that checks for the existence fo the file.
1461+ wrapped with a wait loop that checks for the existence of the file.
14621462
14631463
14641464:mod: `test.support.import_helper ` --- Utilities for import tests
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ Standard names are defined for the following types:
243243
244244 .. note ::
245245 A future version of Python may stop setting this attribute by default.
246- To guard against this potential change, preferrably read from the
246+ To guard against this potential change, preferably read from the
247247 :attr: `__spec__ ` attribute instead or use
248248 ``getattr(module, "__loader__", None) `` if you explicitly need to use
249249 this attribute.
@@ -268,7 +268,7 @@ Standard names are defined for the following types:
268268
269269 .. note ::
270270 A future version of Python may stop setting this attribute by default.
271- To guard against this potential change, preferrably read from the
271+ To guard against this potential change, preferably read from the
272272 :attr: `__spec__ ` attribute instead or use
273273 ``getattr(module, "__package__", None) `` if you explicitly need to use
274274 this attribute.
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ def hide_comments(lines):
165165 """Tool to remove comments from given lines.
166166
167167 It yields empty lines in place of comments, so line numbers are
168- still meaningfull .
168+ still meaningful .
169169 """
170170 in_multiline_comment = False
171171 for line in lines :
You can’t perform that action at this time.
0 commit comments