PyDocs

Nav

Python Language Services

AugAssign

ast

class
  • AugAssign(target, op, value)
AugAssign(expr target, operator op, expr value)
1 Example
>>> print(ast.dump(ast.parse('x += 2'), indent=4))
Module(
    body=[
        AugAssign(
            target=Name(id='x', ctx=Store()),
            op=Add(),
            value=Constant(value=2))])
from the Python docs
See Also
No see-alsos for ast/AugAssign
0 Notes
No notes for AugAssign