mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Added clear cache methods to clear the internal type lookup cache for ref leak test runs.
This commit is contained in:
parent
3ea7b41b58
commit
908caac52e
8 changed files with 55 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue