walrus operator

GPTKB entity

Statements (23)
Predicate Object
gptkbp:instance_of gptkb:engine
gptkbp:allows assignment and return of a value
gptkbp:can_be_used_with other expressions
gptkbp:enables conditional assignments
gptkbp:formulation :=
https://www.w3.org/2000/01/rdf-schema#label walrus operator
gptkbp:improves code readability
gptkbp:introduced gptkb:Python_3.8
gptkbp:is a traditional assignment operator
gptkbp:is_documented_in Python Enhancement Proposals (PE Ps)
gptkbp:is_known_for assignment expression
gptkbp:is_part_of Python syntax enhancements
gptkbp:is_similar_to lambda functions
gptkbp:is_supported_by Python interpreter
Python versions before 3.8
gptkbp:is_used_for reducing code duplication
gptkbp:is_used_in list comprehensions
if statements
while loops
gptkbp:suitable_for certain coding scenarios
gptkbp:used_in gptkb:language
gptkbp:bfsParent gptkb:PEP_572
gptkbp:bfsLayer 6