| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -116,6 +116,20 @@ Type Objects | |||
| 116 | 116 | .. versionadded:: 3.12 | |
| 117 | 117 | ||
| 118 | 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 | + | ||
| 119 | 133 | .. c:type:: int (*PyType_WatchCallback)(PyObject *type) | |
| 120 | 134 | ||
| 121 | 135 | Type of a type-watcher callback function. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments