3 ms·
I vehemently disagree - these walrus vars are still in scope outside of the condition block. And on top of that, now there are special conditions for these walr
by lolsal 7y ago
I vehemently disagree - these walrus vars are still in scope outside of the condition block. And on top of that, now there are special conditions for these walrus vars which are completely not obvious.
Reference: https://www.python.org/dev/peps/pep-0572/#scope-of-the-target https://www.python.org/dev/peps/pep-0572/#scope-of-the-targe...