diff options
author | Georg Brandl <georg@python.org> | 2008-05-28 11:21:39 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-28 11:21:39 (GMT) |
commit | 74a1deaab360e118fa5f4621fd30a4ef4cc5a53e (patch) | |
tree | 7624b50a6c6f2b46c4ca7c3a9170f3d7f161ad51 /Doc | |
parent | 88eeef35d7795ec427f61e67f427dccaeabc0d11 (diff) | |
download | cpython-74a1deaab360e118fa5f4621fd30a4ef4cc5a53e.zip cpython-74a1deaab360e118fa5f4621fd30a4ef4cc5a53e.tar.gz cpython-74a1deaab360e118fa5f4621fd30a4ef4cc5a53e.tar.bz2 |
#2989: add PyType_Modified().
Diffstat (limited to 'Doc')
-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 762c003..e4e2e38 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 |