Statements (17)
Predicate | Object |
---|---|
gptkbp:instanceOf |
Python syntax feature
|
gptkbp:allows |
assignment within expressions
|
gptkbp:alsoKnownAs |
:= operator
|
gptkbp:example |
if (n := len(a)) > 10: print(n)
|
gptkbp:hasSyntax |
:=
|
https://www.w3.org/2000/01/rdf-schema#label |
Walrus operator
|
gptkbp:introducedIn |
gptkb:Python_3.8
|
gptkbp:language |
gptkb:Python
|
gptkbp:namedAfter |
gptkb:walrus_(animal)
|
gptkbp:PEP |
572
|
gptkbp:purpose |
assignment expressions
|
gptkbp:usedIn |
list comprehensions
if statements generator expressions while statements |
gptkbp:bfsParent |
gptkb:Python_Enhancement_Proposal_572_(PEP_572)
|
gptkbp:bfsLayer |
6
|