Ka-Ping Yee wrote:
> Hmm, this is rather nice. I can imagine possible use cases for
>
>switch x:
>case > 3: foo(x)
>case is y: spam(x)
>case == z: eggs(x)
Part of the readability advantage of a switch over an if/elif chain is
the semantic parallelism, which woul
I am a recent subscriber to this list. A couple of months ago
I downloaded the Python source out of curiosity, then decided
to see if I could scratch a couple of small itches.
One of them was syntax errors reported on one line but actually
resulting from unbalanced brackets on the previous line.