[Python-3000] Switch/Case statement PEP

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Dec 13 00:42:22 CET 2006


Marcin 'Qrczak' Kowalczyk wrote:
> IMHO any expression should be acceptable, it should be evaluated when
> being compared

You'll have to be more precise about what you mean
by "being compared". If you mean that the cases are
to be tested one by one as in an if-else chain,
there's little point in having a switch statement
to begin with.

--
Greg


More information about the Python-3000 mailing list