summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRichard Hansen <rhansen@rhansen.org>2024-10-12 20:57:27 (GMT)
committerGitHub <noreply@github.com>2024-10-12 20:57:27 (GMT)
commit330c527299a5380f39c658bfa9321706cabc445d (patch)
tree1775de190a8bf9674f0131504aac0981b430b7d9 /Doc
parentfa52b82c91a8e1a0971bd5fef656473ec93f41e3 (diff)
downloadcpython-330c527299a5380f39c658bfa9321706cabc445d.zip
cpython-330c527299a5380f39c658bfa9321706cabc445d.tar.gz
cpython-330c527299a5380f39c658bfa9321706cabc445d.tar.bz2
gh-124872: Change PyContext_WatchCallback to take PyObject (#124737)
The PyContext struct is not intended to be public, and users of the API don't need anything more specific than PyObject. Also see gh-78943.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/contextvars.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/contextvars.rst b/Doc/c-api/contextvars.rst
index 59e74ba..8eba54a 100644
--- a/Doc/c-api/contextvars.rst
+++ b/Doc/c-api/contextvars.rst
@@ -136,7 +136,7 @@ Context object management functions:
.. versionadded:: 3.14
-.. c:type:: int (*PyContext_WatchCallback)(PyContextEvent event, PyContext* ctx)
+.. c:type:: int (*PyContext_WatchCallback)(PyContextEvent event, PyObject *obj)
Context object watcher callback function. The object passed to the callback
is event-specific; see :c:type:`PyContextEvent` for details.