mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
[3.12] gh-109195: fix source location for super load before LOAD_SUPER_ATTR (GH-109289) (#109291)
gh-109195: fix source location for super load before LOAD_SUPER_ATTR (GH-109289)
(cherry picked from commit ceeb4173ae
)
Co-authored-by: Carl Meyer <carl@oddbird.net>
This commit is contained in:
parent
8e96b98282
commit
2004e12d8d
3 changed files with 12 additions and 1 deletions
|
@ -4776,7 +4776,7 @@ load_args_for_super(struct compiler *c, expr_ty e) {
|
|||
|
||||
// load super() global
|
||||
PyObject *super_name = e->v.Call.func->v.Name.id;
|
||||
RETURN_IF_ERROR(compiler_nameop(c, loc, super_name, Load));
|
||||
RETURN_IF_ERROR(compiler_nameop(c, LOC(e->v.Call.func), super_name, Load));
|
||||
|
||||
if (asdl_seq_LEN(e->v.Call.args) == 2) {
|
||||
VISIT(c, expr, asdl_seq_GET(e->v.Call.args, 0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue