[Python-Dev] switch-based programming in Python (original) (raw)

Greg Ewing greg@cosc.canterbury.ac.nz
Thu, 08 Nov 2001 13:04:21 +1300 (NZDT)


"M.-A. Lemburg" <mal@lemburg.com>:

Wouldn't it make sense to enable the byte code compiler to take the above construct and turn it into a dictionary based switch statement ?

That's an interesting idea. +1 on giving it some more thought.

Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+