This commit is contained in:
Benjamin Peterson 2013-04-10 17:01:38 -04:00
commit 34ad84d80a
2 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,8 @@ What's New in Python 3.4.0 Alpha 1?
Core and Builtins
-----------------
- Issue #17669: Fix crash involving finalization of generators using yield from.
- Issue #14439: Python now prints the traceback on runpy failure at startup.
- Issue #17469: Fix _Py_GetAllocatedBlocks() and sys.getallocatedblocks()

View File

@ -178,7 +178,7 @@ gen_yf(PyGenObject *gen)
PyObject *yf = NULL;
PyFrameObject *f = gen->gi_frame;
if (f) {
if (f && f->f_stacktop) {
PyObject *bytecode = f->f_code->co_code;
unsigned char *code = (unsigned char *)PyBytes_AS_STRING(bytecode);