synt.expr.named_expr
¤
NamedExpr
¤
Bases: Expression
Inline assignment expression, aka :=
.
References
Source code in synt/expr/named_expr.py
value
instance-attribute
¤
|
The value to be assigned to the receiver.
__init__
¤
|
Initialize a named expr expression.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
receiver |
Identifier
|
The identifier to be assigned. |
required |
value |
IntoExpression
|
The value to be assigned to the receiver. |
required |