Mercurial > cpython-lru_cache-weakref
comparison Python/compile.c @ 76383:22844ddce57b
merge 3.2 (#14607)
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Tue, 17 Apr 2012 19:54:35 -0400 |
| parents | 72556ff86828 f8540b8d076c |
| children | 1439e2d1f490 |
comparison
equal
deleted
inserted
replaced
| 76381:66bd85bcf916 | 76383:22844ddce57b |
|---|---|
| 1407 int i, default_count = 0; | 1407 int i, default_count = 0; |
| 1408 for (i = 0; i < asdl_seq_LEN(kwonlyargs); i++) { | 1408 for (i = 0; i < asdl_seq_LEN(kwonlyargs); i++) { |
| 1409 arg_ty arg = asdl_seq_GET(kwonlyargs, i); | 1409 arg_ty arg = asdl_seq_GET(kwonlyargs, i); |
| 1410 expr_ty default_ = asdl_seq_GET(kw_defaults, i); | 1410 expr_ty default_ = asdl_seq_GET(kw_defaults, i); |
| 1411 if (default_) { | 1411 if (default_) { |
| 1412 ADDOP_O(c, LOAD_CONST, arg->arg, consts); | 1412 PyObject *mangled = _Py_Mangle(c->u->u_private, arg->arg); |
| 1413 if (!mangled) | |
| 1414 return -1; | |
| 1415 ADDOP_O(c, LOAD_CONST, mangled, consts); | |
| 1416 Py_DECREF(mangled); | |
| 1413 if (!compiler_visit_expr(c, default_)) { | 1417 if (!compiler_visit_expr(c, default_)) { |
| 1414 return -1; | 1418 return -1; |
| 1415 } | 1419 } |
| 1416 default_count++; | 1420 default_count++; |
| 1417 } | 1421 } |
