3 ms·
It's the #1 example of wtfpython for no good reason. It's like someone used to PHP or JS style coercion, doing: 1 + "2", getting a type error and asking "wtf p
by coldtea 6y ago
It's the #1 example of wtfpython for no good reason.
It's like someone used to PHP or JS style coercion, doing: 1 + "2", getting a type error and asking "wtf python?".
The walrus operator is obvious, and very handy in many cases.
The capture part of the pattern matching PEP, on the other hand, has been designed shodilly.