[3.11] gh-93675: Fix typos in `Doc/` (GH-93676) (GH-94079) · python/cpython@49687b0

GitHub

Original file line numberDiff line numberDiff line change@@ -257,7 +257,7 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.

257257 replaced with a fresh worker process. By default *max_tasks_per_child* is

258258 ``None`` which means worker processes will live as long as the pool. When

259259 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

261261 with the "fork" start method.

262262263263 .. versionchanged:: 3.3

Original file line numberDiff line numberDiff line change@@ -361,7 +361,7 @@ Functions and classes provided:

361361 As this changes a global state, the working directory, it is not suitable

362362 for use in most threaded or async contexts. It is also not suitable for most

363363 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

365365 when this context manager is active.

366366367367 This is a simple wrapper around :func:`~os.chdir`, it changes the current

Original file line numberDiff line numberDiff line change@@ -739,7 +739,7 @@ To illustrate this issue, consider the following code::

739739 def __enter__(self):

740740 # If KeyboardInterrupt occurs here, everything is fine

741741 self.lock.acquire()

742- # If KeyboardInterrupt occcurs here, __exit__ will not be called

742+ # If KeyboardInterrupt occurs here, __exit__ will not be called

743743 ...

744744 # KeyboardInterrupt could occur just before the function returns

745745Original file line numberDiff line numberDiff line change@@ -573,7 +573,7 @@ is already executing raises a :exc:`ValueError` exception.

573573 In typical use, this is called with a single exception instance similar to the

574574 way the :keyword:`raise` keyword is used.

575575576- For backwards compatability, however, the second signature is

576+ For backwards compatibility, however, the second signature is

577577 supported, following a convention from older versions of Python.

578578 The *type* argument should be an exception class, and *value*

579579 should be an exception instance. If the *value* is not provided, the

Original file line numberDiff line numberDiff line change@@ -130,7 +130,7 @@

130130131131# Find role glued with another word like:

132132# the:c:func:`PyThreadState_LeaveTracing` function.

133-# instad of:

133+# instead of:

134134# the :c:func:`PyThreadState_LeaveTracing` function.

135135role_glued_with_word=re.compile(r"[a-zA-Z]%s"%all_roles)

136136