Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Doc/c-api/contextvars.rst for pep-7
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
  • Loading branch information
fried and erlend-aasland committed Sep 23, 2024
commit 1ed9657982f1ed978b29882aca8b58262a03b37b
2 changes: 1 addition & 1 deletion Doc/c-api/contextvars.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Context object management functions:
.. c:type:: int (*PyContext_WatchCallback)(PyContextEvent event, PyContext* ctx)

Type of a context object watcher callback function.
If *event* is ``PY_CONTEXT_EVENT_ENTER``, then the callback is invoked
If *event* is ``Py_CONTEXT_EVENT_ENTER``, then the callback is invoked
after *ctx* has been set as the current context for the current thread.
Otherwise, the callback is invoked before the deactivation of *ctx* as the current context
and the restoration of the previous contex object for the current thread.
Expand Down