Docs: fix typos in PyFunction_WatchCallback docs and in 3.12 NEWS (GH-101980)

- possitibility => possibility
- disaallowed => disallowed
This commit is contained in:
Yeojin Kim 2023-02-17 17:47:02 +09:00 committed by GitHub
parent a3bb7fbe7e
commit 3c0a31cbfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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* 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 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. 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 runtime behavior depending on optimization decisions, it does not change
the semantics of the Python code being executed. the semantics of the Python code being executed.

View file

@ -1060,7 +1060,7 @@ Add ``getbufferproc`` and ``releasebufferproc`` to the stable API.
Some configurable capabilities of sub-interpreters have changed. They always Some configurable capabilities of sub-interpreters have changed. They always
allow subprocesses (:mod:`subprocess`) now, whereas before subprocesses 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 :func:`os.exec` can now be disallowed. Disallowing daemon threads is now
supported. Disallowing all threads is still allowed, but is never done by supported. Disallowing all threads is still allowed, but is never done by
default. Note that the optional restrictions are only available through default. Note that the optional restrictions are only available through