summaryrefslogtreecommitdiffstats
path: root/Include/object.h
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-01-27 23:34:59 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-01-27 23:34:59 (GMT)
commit908caac52e8e62baa1ee54e4e650e1cd3ac37907 (patch)
tree291efd46f16d74de6e49bba69f785883c6cdfcc1 /Include/object.h
parent3ea7b41b5805c60a05e697211d0bfc14a62a19fb (diff)
downloadcpython-908caac52e8e62baa1ee54e4e650e1cd3ac37907.zip
cpython-908caac52e8e62baa1ee54e4e650e1cd3ac37907.tar.gz
cpython-908caac52e8e62baa1ee54e4e650e1cd3ac37907.tar.bz2
Added clear cache methods to clear the internal type lookup cache for ref leak test runs.
Diffstat (limited to 'Include/object.h')
-rw-r--r--Include/object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h
index 7294158..65440a6 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -399,6 +399,7 @@ PyAPI_FUNC(PyObject *) PyType_GenericAlloc(PyTypeObject *, Py_ssize_t);
PyAPI_FUNC(PyObject *) PyType_GenericNew(PyTypeObject *,
PyObject *, PyObject *);
PyAPI_FUNC(PyObject *) _PyType_Lookup(PyTypeObject *, PyObject *);
+PyAPI_FUNC(unsigned int) PyType_ClearCache(void);
/* Generic operations on objects */
PyAPI_FUNC(int) PyObject_Print(PyObject *, FILE *, int);