diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-11-26 01:13:12 +0100 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-11-26 01:13:12 +0100 |
commit | c366117820eb34e14f4bf2b1f82a47b7a9cbc04a (patch) | |
tree | a9a703511caf473574a2d312c5143fa2c8486beb /Python/ceval.c | |
parent | f0effe637988e936b5a6ece2da789b67723d675c (diff) | |
parent | 0fdfceb782424dcddca848357736f24ef40c91be (diff) | |
download | cpython-git-c366117820eb34e14f4bf2b1f82a47b7a9cbc04a.tar.gz |
Merge heads
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 8d980fdc93..ed82b9411a 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2687,9 +2687,11 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) int kwdefaults = (oparg>>8) & 0xff; int num_annotations = (oparg >> 16) & 0x7fff; + w = POP(); /* qualname */ v = POP(); /* code object */ - x = PyFunction_New(v, f->f_globals); + x = PyFunction_NewWithQualName(v, f->f_globals, w); Py_DECREF(v); + Py_DECREF(w); if (x != NULL && opcode == MAKE_CLOSURE) { v = POP(); |