diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-08 16:12:35 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-08 16:12:35 (GMT) |
commit | 04e70d19e7a5ab0cea7d3d231606180226e16f06 (patch) | |
tree | a1956f14fe0e89e656fd2161178dad0e25ff4b14 /Include/genobject.h | |
parent | 070cb3c9bed3fbdbda42c257e05d46adcbeb784e (diff) | |
download | cpython-04e70d19e7a5ab0cea7d3d231606180226e16f06.zip cpython-04e70d19e7a5ab0cea7d3d231606180226e16f06.tar.gz cpython-04e70d19e7a5ab0cea7d3d231606180226e16f06.tar.bz2 |
Issue #17807: Generators can now be finalized even when they are part of a reference cycle.
Diffstat (limited to 'Include/genobject.h')
-rw-r--r-- | Include/genobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/genobject.h b/Include/genobject.h index ed451ba..b8796f2 100644 --- a/Include/genobject.h +++ b/Include/genobject.h @@ -33,6 +33,7 @@ PyAPI_DATA(PyTypeObject) PyGen_Type; #define PyGen_CheckExact(op) (Py_TYPE(op) == &PyGen_Type) PyAPI_FUNC(PyObject *) PyGen_New(struct _frame *); +/* Deprecated, kept for backwards compatibility. */ PyAPI_FUNC(int) PyGen_NeedsFinalizing(PyGenObject *); PyAPI_FUNC(int) _PyGen_FetchStopIterationValue(PyObject **); PyObject *_PyGen_Send(PyGenObject *, PyObject *); |