[Python-3000] Switch/Case statement PEP (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed Dec 13 00:42:22 CET 2006
- Previous message: [Python-3000] Switch/Case statement PEP
- Next message: [Python-3000] Low-hanging fruit: change interpreter prompt?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] Switch/Case statement PEP
- Next message: [Python-3000] Low-hanging fruit: change interpreter prompt?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]