mirror of
https://github.com/python/cpython.git
synced 2025-11-27 13:45:25 +00:00
merge 3.5 (#27812)
This commit is contained in:
commit
7b24b27302
2 changed files with 7 additions and 1 deletions
|
|
@ -29,6 +29,9 @@ Core and Builtins
|
||||||
- Issue #27506: Support passing the bytes/bytearray.translate() "delete"
|
- Issue #27506: Support passing the bytes/bytearray.translate() "delete"
|
||||||
argument by keyword.
|
argument by keyword.
|
||||||
|
|
||||||
|
- Issue #27812: Properly clear out a generator's frame's backreference to the
|
||||||
|
generator to prevent crashes in frame.clear().
|
||||||
|
|
||||||
- Issue #27811: Fix a crash when a coroutine that has not been awaited is
|
- Issue #27811: Fix a crash when a coroutine that has not been awaited is
|
||||||
finalized with warnings-as-errors enabled.
|
finalized with warnings-as-errors enabled.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,10 @@ gen_dealloc(PyGenObject *gen)
|
||||||
return; /* resurrected. :( */
|
return; /* resurrected. :( */
|
||||||
|
|
||||||
_PyObject_GC_UNTRACK(self);
|
_PyObject_GC_UNTRACK(self);
|
||||||
|
if (gen->gi_frame != NULL) {
|
||||||
|
gen->gi_frame->f_gen = NULL;
|
||||||
Py_CLEAR(gen->gi_frame);
|
Py_CLEAR(gen->gi_frame);
|
||||||
|
}
|
||||||
Py_CLEAR(gen->gi_code);
|
Py_CLEAR(gen->gi_code);
|
||||||
Py_CLEAR(gen->gi_name);
|
Py_CLEAR(gen->gi_name);
|
||||||
Py_CLEAR(gen->gi_qualname);
|
Py_CLEAR(gen->gi_qualname);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue