GeezerVison is showing github.com — [3.11] gh-93675: Fix typos in `Doc/` (GH-93676) (GH-94079) · python/cpython@49687b0
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: Doc/library/concurrent.futures.rst +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -257,7 +257,7 @@ to a :class:`ProcessPoolExecutor` will result in deadlock. | 257 | 257 | replaced with a fresh worker process. By default *max_tasks_per_child* is | 258 | 258 | ``None`` which means worker processes will live as long as the pool. When | 259 | 259 | a max is specified, the "spawn" multiprocessing start method will be used by | 260 | | - default in absense of a *mp_context* parameter. This feature is incompatible | | 260 | + default in absence of a *mp_context* parameter. This feature is incompatible | 261 | 261 | with the "fork" start method. | 262 | 262 |
| 263 | 263 | .. versionchanged:: 3.3 | |
Collapse file Copy file name to clipboardExpand all lines: Doc/library/contextlib.rst +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -361,7 +361,7 @@ Functions and classes provided: | 361 | 361 | As this changes a global state, the working directory, it is not suitable | 362 | 362 | for use in most threaded or async contexts. It is also not suitable for most | 363 | 363 | non-linear code execution, like generators, where the program execution is | 364 | | - temporarily relinquished -- unless explicitely desired, you should not yield | | 364 | + temporarily relinquished -- unless explicitly desired, you should not yield | 365 | 365 | when this context manager is active. | 366 | 366 |
| 367 | 367 | This is a simple wrapper around :func:`~os.chdir`, it changes the current | |
Collapse file Copy file name to clipboardExpand all lines: Doc/library/signal.rst +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -739,7 +739,7 @@ To illustrate this issue, consider the following code:: | 739 | 739 | def __enter__(self): | 740 | 740 | # If KeyboardInterrupt occurs here, everything is fine | 741 | 741 | self.lock.acquire() | 742 | | - # If KeyboardInterrupt occcurs here, __exit__ will not be called | | 742 | + # If KeyboardInterrupt occurs here, __exit__ will not be called | 743 | 743 | ... | 744 | 744 | # KeyboardInterrupt could occur just before the function returns | 745 | 745 |
| |
Collapse file Copy file name to clipboardExpand all lines: Doc/reference/expressions.rst +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -573,7 +573,7 @@ is already executing raises a :exc:`ValueError` exception. | 573 | 573 | In typical use, this is called with a single exception instance similar to the | 574 | 574 | way the :keyword:`raise` keyword is used. | 575 | 575 |
| 576 | | - For backwards compatability, however, the second signature is | | 576 | + For backwards compatibility, however, the second signature is | 577 | 577 | supported, following a convention from older versions of Python. | 578 | 578 | The *type* argument should be an exception class, and *value* | 579 | 579 | should be an exception instance. If the *value* is not provided, the | |
Collapse file Copy file name to clipboardExpand all lines: Doc/tools/rstlint.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 130 | 130 |
| 131 | 131 | # Find role glued with another word like: | 132 | 132 | # the:c:func:`PyThreadState_LeaveTracing` function. | 133 | | -# instad of: | | 133 | +# instead of: | 134 | 134 | # the :c:func:`PyThreadState_LeaveTracing` function. | 135 | 135 | role_glued_with_word = re.compile(r"[a-zA-Z]%s" % all_roles) | 136 | 136 |
| |
|