diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/type.rst | 7 | ||||
-rw-r--r-- | Doc/library/sys.rst | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst index 1ee5f58..762c003 100644 --- a/Doc/c-api/type.rst +++ b/Doc/c-api/type.rst @@ -35,6 +35,13 @@ Type Objects .. versionadded:: 2.2 +.. cfunction:: unsigned int PyType_ClearCache(void) + + Clears the internal lookup cache. Return the current version tag. + + .. versionadded:: 2.6 + + .. cfunction:: int PyType_HasFeature(PyObject *o, int feature) Return true if the type object *o* sets the feature *feature*. Type features diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 4b2ff4a..7c88251 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -58,6 +58,13 @@ always available. A string containing the copyright pertaining to the Python interpreter. +.. function:: _cleartypecache() + + Clear the internal type lookup cache. + + .. versionadded:: 2.6 + + .. function:: _current_frames() Return a dictionary mapping each thread's identifier to the topmost stack frame |