| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -185,7 +185,7 @@ Object Calling API | |||
| 185 | 185 | Various functions are available for calling a Python object. | |
| 186 | 186 | Each converts its arguments to a convention supported by the called object – | |
| 187 | 187 | either *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 | ||
| 189 | 189 | the format of data you have available. | |
| 190 | 190 | ||
| 191 | 191 | The 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? | |||
| 715 | 715 | For technical reasons, a generator used directly as a context manager | |
| 716 | 716 | would not work correctly. When, as is most common, a generator is used as | |
| 717 | 717 | an 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. | ||
| 719 | 719 | ||
| 720 | 720 | ||
| 721 | 721 | Why 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: | |||
| 1552 | 1552 | If source contains a null character ('\0'), :exc:`ValueError` is raised. | |
| 1553 | 1553 | ||
| 1554 | 1554 | .. 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 | ||
| 1556 | 1556 | guarantee that the source code provided is valid Python code that can | |
| 1557 | 1557 | be executed as the compilation step can raise further :exc:`SyntaxError` | |
| 1558 | 1558 | 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: | |||
| 457 | 457 | .. function:: unlink(filename) | |
| 458 | 458 | ||
| 459 | 459 | 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. | ||
| 461 | 461 | ||
| 462 | 462 | ||
| 463 | 463 | .. function:: rmdir(filename) | |
@@ -1145,7 +1145,7 @@ The :mod:`test.support` module defines the following functions: | |||
| 1145 | 1145 | Context manager catching :class:`threading.Thread` exception using | |
| 1146 | 1146 | :func:`threading.excepthook`. | |
| 1147 | 1147 | ||
| 1148 | - Attributes set when an exception is catched: | ||
| 1148 | + Attributes set when an exception is caught: | ||
| 1149 | 1149 | ||
| 1150 | 1150 | * ``exc_type`` | |
| 1151 | 1151 | * ``exc_value`` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -229,7 +229,7 @@ Standard names are defined for the following types: | |||
| 229 | 229 | ||
| 230 | 230 | .. note:: | |
| 231 | 231 | 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 | ||
| 233 | 233 | :attr:`__spec__` attribute instead or use | |
| 234 | 234 | ``getattr(module, "__loader__", None)`` if you explicitly need to use | |
| 235 | 235 | this attribute. | |
@@ -254,7 +254,7 @@ Standard names are defined for the following types: | |||
| 254 | 254 | ||
| 255 | 255 | .. note:: | |
| 256 | 256 | 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 | ||
| 258 | 258 | :attr:`__spec__` attribute instead or use | |
| 259 | 259 | ``getattr(module, "__package__", None)`` if you explicitly need to use | |
| 260 | 260 | this attribute. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments