@@ -182,27 +182,3 @@ Context variable functions:
182182 Reset the state of the *var * context variable to that it was in before
183183 :c:func: `PyContextVar_Set ` that returned the *token * was called.
184184 This function returns ``0 `` on success and ``-1 `` on error.
185-
186- .. c :function :: int PyContextVar_GetChanged (PyObject *var, PyObject *default_value, PyObject **value, int *changed)
187-
188- Like :c:func: `PyContextVar_Get `, but also reports whether the variable was
189- changed in the current context scope. This combines a value lookup with a
190- change check in a single HAMT lookup.
191-
192- Returns ``-1 `` if an error has occurred during lookup, and ``0 `` if no
193- error occurred, whether or not a value was found.
194-
195- On success, *\* value * is set following the same rules as
196- :c:func: `PyContextVar_Get `. *\* changed * is set to ``1 `` if the variable
197- was changed (via :c:func: `PyContextVar_Set `) in the current context scope
198- (i.e. within the current :meth: `~contextvars.Context.run ` call) with a
199- value that is a different object than the inherited one. Otherwise
200- *\*changed* is set to ``0``. If the value was not found, *\*changed* is
201- always ``0``.
202-
203- If the current context was never entered (no :meth: `~contextvars.Context.run `
204- is active), all existing bindings are considered "changed".
205-
206- Except for ``NULL``, the function returns a new reference via *\*value*.
207-
208- .. versionadded:: 3.15
0 commit comments