summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYeojin Kim <yeojin.dev@gmail.com>2023-02-17 08:47:02 (GMT)
committerGitHub <noreply@github.com>2023-02-17 08:47:02 (GMT)
commit3c0a31cbfd1258bd96153a007dd44a96f2947dbf (patch)
tree04e2834f191291a759955b2f7ea21bbec1fe6b27
parenta3bb7fbe7eecfae6bf7b2f0912f9b2b12fac8db1 (diff)
downloadcpython-3c0a31cbfd1258bd96153a007dd44a96f2947dbf.zip
cpython-3c0a31cbfd1258bd96153a007dd44a96f2947dbf.tar.gz
cpython-3c0a31cbfd1258bd96153a007dd44a96f2947dbf.tar.bz2
Docs: fix typos in PyFunction_WatchCallback docs and in 3.12 NEWS (GH-101980)
- possitibility => possibility - disaallowed => disallowed
-rw-r--r--Doc/c-api/function.rst2
-rw-r--r--Misc/NEWS.d/3.12.0a2.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/function.rst b/Doc/c-api/function.rst
index 3cce18b..bc7569d 100644
--- a/Doc/c-api/function.rst
+++ b/Doc/c-api/function.rst
@@ -169,7 +169,7 @@ There are a few functions specific to Python functions.
before the modification to *func* takes place, so the prior state of *func*
can be inspected. The runtime is permitted to optimize away the creation of
function objects when possible. In such cases no event will be emitted.
- Although this creates the possitibility of an observable difference of
+ Although this creates the possibility of an observable difference of
runtime behavior depending on optimization decisions, it does not change
the semantics of the Python code being executed.
diff --git a/Misc/NEWS.d/3.12.0a2.rst b/Misc/NEWS.d/3.12.0a2.rst
index 318f3f7..41ad8cd 100644
--- a/Misc/NEWS.d/3.12.0a2.rst
+++ b/Misc/NEWS.d/3.12.0a2.rst
@@ -1060,7 +1060,7 @@ Add ``getbufferproc`` and ``releasebufferproc`` to the stable API.
Some configurable capabilities of sub-interpreters have changed. They always
allow subprocesses (:mod:`subprocess`) now, whereas before subprocesses
-could be optionally disaallowed for a sub-interpreter. Instead
+could be optionally disallowed for a sub-interpreter. Instead
:func:`os.exec` can now be disallowed. Disallowing daemon threads is now
supported. Disallowing all threads is still allowed, but is never done by
default. Note that the optional restrictions are only available through