Issue1504199
Created on 2006年06月11日 02:13 by krumms, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (2) |
|
msg50458 - (view) |
Author: Thomas Lee (krumms) (Python committer) |
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) * (Python committer) |
Date: 2007年03月13日 20:08 |
The PEP was rejected, so rejecting the patch.
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2022年04月11日 14:56:18 | admin | set | github: 43486 |
| 2006年06月11日 02:13:11 | krumms | create |