aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-08-05 23:26:40 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2013-08-05 23:26:40 +0200
commit58720d6145eca69b9aa45b720cb3c1376b1ddaea (patch)
tree56a90729aff1127491b8f895b40b4159ca3dce56 /Include/genobject.h
parentIssue #4885: Add weakref support to mmap objects. Patch by Valerie Lambert. (diff)
downloadcpython-58720d6145eca69b9aa45b720cb3c1376b1ddaea.tar.gz
cpython-58720d6145eca69b9aa45b720cb3c1376b1ddaea.tar.bz2
cpython-58720d6145eca69b9aa45b720cb3c1376b1ddaea.zip
Issue #17934: Add a clear() method to frame objects, to help clean up expensive details (local variables) and break reference cycles.
Diffstat (limited to 'Include/genobject.h')
-rw-r--r--Include/genobject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/genobject.h b/Include/genobject.h
index ed451baf3cb..65f1ecfd549 100644
--- a/Include/genobject.h
+++ b/Include/genobject.h
@@ -36,6 +36,8 @@ PyAPI_FUNC(PyObject *) PyGen_New(struct _frame *);
PyAPI_FUNC(int) PyGen_NeedsFinalizing(PyGenObject *);
PyAPI_FUNC(int) _PyGen_FetchStopIterationValue(PyObject **);
PyObject *_PyGen_Send(PyGenObject *, PyObject *);
+PyAPI_FUNC(void) _PyGen_Finalize(PyObject *self);
+
#ifdef __cplusplus
}