diff options
author | Brett Cannon <brett@python.org> | 2012-04-17 21:42:07 -0400 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-04-17 21:42:07 -0400 |
commit | d25c30c5c1f452d6a7debb98f5167da95f46c071 (patch) | |
tree | 50edf839a8f5aee0efcd191d3c0966e3b4419ced /Python | |
parent | d5915edc890b2612e8eb9d16828e07f89b4824b0 (diff) | |
parent | 5adbbc368fd17f2d605e8640555662de5dd9b9c7 (diff) | |
download | cpython-d25c30c5c1f452d6a7debb98f5167da95f46c071.tar.gz |
Merge
Diffstat (limited to 'Python')
-rw-r--r-- | Python/compile.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 1722a5f97d..79d1d21670 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1409,7 +1409,11 @@ compiler_visit_kwonlydefaults(struct compiler *c, asdl_seq *kwonlyargs, arg_ty arg = asdl_seq_GET(kwonlyargs, i); expr_ty default_ = asdl_seq_GET(kw_defaults, i); if (default_) { - ADDOP_O(c, LOAD_CONST, arg->arg, consts); + PyObject *mangled = _Py_Mangle(c->u->u_private, arg->arg); + if (!mangled) + return -1; + ADDOP_O(c, LOAD_CONST, mangled, consts); + Py_DECREF(mangled); if (!compiler_visit_expr(c, default_)) { return -1; } |