diff options
Diffstat (limited to 'Doc/c-api')
| -rw-r--r-- | Doc/c-api/type.rst | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst index 762c003c74..e4e2e380b7 100644 --- a/Doc/c-api/type.rst +++ b/Doc/c-api/type.rst @@ -37,7 +37,16 @@ Type Objects .. cfunction:: unsigned int PyType_ClearCache(void) - Clears the internal lookup cache. Return the current version tag. + Clear the internal lookup cache. Return the current version tag. + + .. versionadded:: 2.6 + + +.. cfunction:: void PyType_Modified(PyTypeObject *type) + + Invalidate the internal lookup cache for the type and all of its + subtypes. This function must be called after any manual + modification of the attributes or base classes of the type. .. versionadded:: 2.6 |
