Issue1504199
Created on 2006-06-11 02:13 by krumms, last changed 2007-03-13 20:08 by georg.brandl.
|
msg50458 - (view) |
Author: Thomas Lee (krumms) |
Date: 2006-06-11 02:13 |
|
Attached is a partial implementation of PEP 275.
It should offer a slight performance enhancement over
if/elif/else, although it won't be nearly as fast as a
lookup table generated at compile time (as the PEP
suggests). However, it is more flexible than a
compile-time generated lookup table in that it accepts
expressions - not just constants - for each case clause.
No new opcodes were added.
Cheers,
Tom
|
|
msg50459 - (view) |
Author: Georg Brandl (georg.brandl) |
Date: 2007-03-13 20:08 |
|
The PEP was rejected, so rejecting the patch.
|
|
| Date |
User |
Action |
Args |
| 2006-06-11 02:13:11 | krumms | create | |
|