Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PyType_Unwatch
1 parent d890aba commit 759a048Copy full SHA for 759a048
1 file changed
Doc/c-api/type.rst
@@ -116,6 +116,20 @@ Type Objects
116
.. versionadded:: 3.12
117
118
119
+.. c:function:: int PyType_Unwatch(int watcher_id, PyObject *type)
120
+
121
+ Mark *type* as not watched. This undoes a previous call to
122
+ :c:func:`PyType_Watch`. *type* must not be ``NULL``.
123
124
+ An extension should never call this function with a *watcher_id* that was
125
+ not returned to it by a previous call to :c:func:`PyType_AddWatcher`.
126
127
+ On success, this function returns ``0``. On failure, this function returns
128
+ ``-1`` with an exception set.
129
130
+ .. versionadded:: 3.12
131
132
133
.. c:type:: int (*PyType_WatchCallback)(PyObject *type)
134
135
Type of a type-watcher callback function.
0 commit comments