mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Backout c89febab4648 following private feedback by Guido.
(Issue #17807: Generators can now be finalized even when they are part of a reference cycle)
This commit is contained in:
parent
b710d7e4c3
commit
9396356948
8 changed files with 245 additions and 335 deletions
|
@ -33,7 +33,6 @@ 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 *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue