Skip to content

Fast parser doesn't know the location of starargs in function calls #2729

Closed
@ddfisher

Description

@ddfisher

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions