42 ms·
> EDIT: The lack of block scoped variable thing does seem like a wart right enough. This is not specific to "match" statement, but is a general issue in Python
by pfalcon 6y ago
> EDIT: The lack of block scoped variable thing does seem like a wart right enough.
This is not specific to "match" statement, but is a general issue in Python. And thus, needs to have a general solution, orthogonal to pattern matching. Are you interested? Please post to the python-ideas mailing list.