PyDocs

Nav

Python Language Services

Attribute

ast

class
  • Attribute(value, attr, ctx)
Attribute(expr value, identifier attr, expr_context ctx)
1 Example
>>> print(ast.dump(ast.parse('snake.colour', mode='eval'), indent=4))
Expression(
    body=Attribute(
        value=Name(id='snake'),
        attr='colour'))
from the Python docs
See Also
No see-alsos for ast/Attribute
0 Notes
No notes for Attribute