PyDocs

Nav

Python Language Services

Call

ast

class
  • Call(func, args, keywords)
Call(expr func, expr* args, keyword* keywords)
1 Example
>>> print(ast.dump(ast.parse('func(a, b=c, *d, **e)', mode='eval'), indent=4))
Expression(
    body=Call(
        func=Name(id='func'),
        args=[
            Name(id='a'),
            Starred(
                value=Name(id='d'))],
        keywords=[
            keyword(
                arg='b',
                value=Name(id='c')),
            keyword(
                value=Name(id='e'))]))
from the Python docs
See Also
No see-alsos for ast/Call
0 Notes
No notes for Call