Re:PEP 572: Python assignment expressions has been accepted
by est on Tuesday July 03, 2018 @05:32AM
(#17448733)
For many people (including me) who learned Python the way that, in languages like C, the `if x=2` assignment combined with condition is an anti-pattern and prone to errors.
This PEP solves very little problem, saves a few characters of code, but adds complexity to readability.
This PEP solves very little problem, saves a few characters of code, but adds complexity to readability.