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 @@ -715,7 +715,7 @@ Why don't generators support the with statement?
715715For technical reasons, a generator used directly as a context manager
716716would not work correctly. When, as is most common, a generator is used as
717717an iterator run to completion, no closing is needed. When it is, wrap
718- it as "contextlib.closing(generator)" in the 'with' statment .
718+ it as "contextlib.closing(generator)" in the 'with' statement .
719719
720720
721721Why are colons required for the if/while/def/class statements?
Original file line number Diff line number Diff line change @@ -1552,7 +1552,7 @@ and classes for traversing abstract syntax trees:
15521552 If source contains a null character ('\0 '), :exc: `ValueError ` is raised.
15531553
15541554 .. warning ::
1555- Note that succesfully parsing souce code into an AST object doesn't
1555+ Note that successfully parsing source code into an AST object doesn't
15561556 guarantee that the source code provided is valid Python code that can
15571557 be executed as the compilation step can raise further :exc: `SyntaxError `
15581558 exceptions. For instance, the source ``return 42 `` generates a valid
Original file line number Diff line number Diff line change @@ -457,7 +457,7 @@ The :mod:`test.support` module defines the following functions:
457457.. function :: unlink(filename)
458458
459459 Call :func: `os.unlink ` on *filename *. On Windows platforms, this is
460- wrapped with a wait loop that checks for the existence fo the file.
460+ wrapped with a wait loop that checks for the existence of the file.
461461
462462
463463.. function :: rmdir(filename)
@@ -1145,7 +1145,7 @@ The :mod:`test.support` module defines the following functions:
11451145 Context manager catching :class: `threading.Thread ` exception using
11461146 :func: `threading.excepthook `.
11471147
1148- Attributes set when an exception is catched :
1148+ Attributes set when an exception is caught :
11491149
11501150 * ``exc_type ``
11511151 * ``exc_value ``
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ Standard names are defined for the following types:
229229
230230 .. note ::
231231 A future version of Python may stop setting this attribute by default.
232- To guard against this potential change, preferrably read from the
232+ To guard against this potential change, preferably read from the
233233 :attr: `__spec__ ` attribute instead or use
234234 ``getattr(module, "__loader__", None) `` if you explicitly need to use
235235 this attribute.
@@ -254,7 +254,7 @@ Standard names are defined for the following types:
254254
255255 .. note ::
256256 A future version of Python may stop setting this attribute by default.
257- To guard against this potential change, preferrably read from the
257+ To guard against this potential change, preferably read from the
258258 :attr: `__spec__ ` attribute instead or use
259259 ``getattr(module, "__package__", None) `` if you explicitly need to use
260260 this attribute.
You can’t perform that action at this time.
0 commit comments