Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd514cf commit c9314d9Copy full SHA for c9314d9
2 files changed
Misc/NEWS
@@ -12,6 +12,8 @@ What's New in Python 3.3.2?
12
Core and Builtins
13
-----------------
14
15
+- Issue #17669: Fix crash involving finalization of generators using yield from.
16
+
17
- Issue #17619: Make input() check for Ctrl-C correctly on Windows.
18
19
- Issue #17610: Don't rely on non-standard behavior of the C qsort() function.
Objects/genobject.c
@@ -178,7 +178,7 @@ gen_yf(PyGenObject *gen)
178
PyObject *yf = NULL;
179
PyFrameObject *f = gen->gi_frame;
180
181
- if (f) {
+ if (f && f->f_stacktop) {
182
PyObject *bytecode = f->f_code->co_code;
183
unsigned char *code = (unsigned char *)PyBytes_AS_STRING(bytecode);
184
0 commit comments