Mercurial > cpython-lru_cache-weakref
diff Include/methodobject.h @ 45341:65ae68c7aca3 legacy-trunk
Implemented Martin's suggestion to clear the free lists during the garbage collection of the highest generation.
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Thu, 14 Feb 2008 12:47:33 +0000 |
| parents | 26384b8180c7 |
| children |
line wrap: on
line diff
--- a/Include/methodobject.h Thu Feb 14 12:05:42 2008 +0000 +++ b/Include/methodobject.h Thu Feb 14 12:47:33 2008 +0000 @@ -85,6 +85,8 @@ PyObject *m_module; /* The __module__ attribute, can be anything */ } PyCFunctionObject; +PyAPI_FUNC(int) PyCFunction_ClearFreeList(void); + #ifdef __cplusplus } #endif
