mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-120722: Set position on RETURN_VALUE in lambda (#120724)
This commit is contained in:
parent
a86e6255c3
commit
d8f27cb114
3 changed files with 31 additions and 2 deletions
|
@ -2968,7 +2968,7 @@ compiler_lambda(struct compiler *c, expr_ty e)
|
|||
co = optimize_and_assemble(c, 0);
|
||||
}
|
||||
else {
|
||||
location loc = LOCATION(e->lineno, e->lineno, 0, 0);
|
||||
location loc = LOC(e->v.Lambda.body);
|
||||
ADDOP_IN_SCOPE(c, loc, RETURN_VALUE);
|
||||
co = optimize_and_assemble(c, 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue