API reference

python:astx:astx.operators.AugAssign

class AugAssign

AugAssign(target: Identifier, op_code: OpCodeAugAssign, value: DataType, loc: SourceLocation = NO_SOURCE_LOCATION)

Source: packages/astx/src/astx/operators.py:227

AST class for augmented assignment.

Model a single identifier target and RHS value. The operation yields the stored value internally; frontends may restrict it to statement contexts. Operator modeling does not imply backend support. Numeric, mutability, conversion, and failure rules belong to semantic analysis and lowering.

Attributes

Methods

Attributes

Search documentation

Type to search.