Commit 56d6f6c8 authored by Travis Hance's avatar Travis Hance

kmod's comments on arg_unpacking

parent 3a63772c
......@@ -2523,6 +2523,8 @@ CFG* computeCFG(SourceInfo* source, std::vector<AST_stmt*> body) {
AST_Name* arg_name_expr
= new AST_Name(arg_name, AST_TYPE::Load, arg_expr->lineno, arg_expr->col_offset);
visitor.pushAssign(arg_expr, arg_name_expr);
} else {
assert(arg_expr->type == AST_TYPE::Name);
}
counter++;
}
......
# - this particular check isn't implemented yet
# I would have expected this to be valid, but cPython and pypy err out saying "name 'x' is local and global"
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment