Added clear cache methods to clear the internal type lookup cache for ref leak test runs.

This commit is contained in:
Christian Heimes 2008-01-27 23:34:59 +00:00
parent 3ea7b41b58
commit 908caac52e
8 changed files with 55 additions and 0 deletions

View file

@ -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