2 ms·
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 pron
by est 8y ago
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.