projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5046d1
)
Add more SET_LINENO instructions in long argument lists
author
Guido van Rossum
<guido@python.org>
Thu, 10 Dec 1998 16:56:22 +0000
(16:56 +0000)
committer
Guido van Rossum
<guido@python.org>
Thu, 10 Dec 1998 16:56:22 +0000
(16:56 +0000)
Python/compile.c
patch
|
blob
|
history
diff --git
a/Python/compile.c
b/Python/compile.c
index 19f18e692dba41352e3744054c70c8e9d0a7c842..3903524ff0524d041f63fff66b667606a50fcad0 100644
(file)
--- a/
Python/compile.c
+++ b/
Python/compile.c
@@
-1168,11
+1168,17
@@
com_call_function(c, n)
else {
PyObject *keywords = NULL;
int i, na, nk;
+ int lineno = n->n_lineno;
REQ(n, arglist);
na = 0;
nk = 0;
for (i = 0; i < NCH(n); i += 2) {
- com_argument(c, CHILD(n, i), &keywords);
+ node *ch = CHILD(n, i);
+ if (ch->n_lineno != lineno) {
+ lineno = ch->n_lineno;
+ com_addoparg(c, SET_LINENO, lineno);
+ }
+ com_argument(c, ch, &keywords);
if (keywords == NULL)
na++;
else