diff --git a/pep-0567.rst b/pep-0567.rst index bd1c0eb67..a60098897 100644 --- a/pep-0567.rst +++ b/pep-0567.rst @@ -556,9 +556,13 @@ C API 5. ``PyContext * PyContext_New()``: create a new empty context. -6. ``PyContext * PyContext_Copy()``: get a copy of the current context. +6. ``PyContext * PyContext_Copy(PyContext *)``: return a shallow + copy of the passed context object. -7. ``int PyContext_Enter(PyContext *)`` and +7. ``PyContext * PyContext_CopyCurrent()``: get a copy of the current + context. + +8. ``int PyContext_Enter(PyContext *)`` and ``int PyContext_Exit(PyContext *)`` allow to set and restore the context for the current OS thread. It is required to always restore the previous context::