Closed as not planned
Description
I have several comments/questions regarding Argument
and Var
- Following Better error message for incompatible default argument (take 2) #3783, attribute
initialization_statement
is not needed. It is only being copied and printed. Without it, it becomes pure data. There's also redundant bookkeeping in other places FuncItem
steals the kinds and names fromArgument
on initialization, yet they are still accessed in several places - it's not clear who "owns" the informationarg.type_annotation
is also not really used (the type is read fromarg.variable.type
) and is not even bound- In general, the relationship between
Argument
andVar
(which is its first, well, argument) is not clear - More so, given that a single argument may be responsible for multiple variables in Python2.7. This is hacked away in the parser, but the way it is handled (making a regular argument and adding an unpacking statement) makes it very difficult to give precise error messages