3 ms·
The behaviour my intuition would have expected is that if a variable is currently in scope, then it is considered as a literal match, otherwise it's a capture m
by jgtrosh 6y ago
The behaviour my intuition would have expected is that if a variable is currently in scope, then it is considered as a literal match, otherwise it's a capture match.
I suppose there's an obvious flaw to that behaviour, though.
- pfalcon 6y agoNo, that's not robust. The idea was simple - to use explicit marker like: case == FOO: case is True: That was part of PEP642, but it ended up containing more other questionable things. I hope that particular point will be separated and implemented.