Closed
Description
In Python 2, the AST for function calls looks like this:
Call(expr func, expr* args, keyword* keywords, expr? starargs, expr? kwargs)
Keyword arguments are allowed to come either before or after starargs, but unfortunately this distinction is not made clear in the Call node. Therefore, when displaying errors about function calls with starargs and keyword arguments, we sometimes give an incorrect argument number.