[Pyrex] switch statement
Robert Bradshaw
robertwb at math.washington.edu
Wed Mar 12 20:39:47 CET 2008
I did some experiments with this, and the results seemed to indicated
it does not. Also, nested ifs performed poorly compared to a flat
list of ifs (for a medium-sized (5-50) set of conditions).
It would be nice to have some syntax for switch statements. Several
alternatives have been rejected for Python: http://www.python.org/dev/
peps/pep-3103/
- Robert
On Mar 12, 2008, at 11:32 AM, Simon Burton wrote:
> Does anyone know if gcc can optimise a switch done with nested if's
> as well as it optimises a real switch ? (eg. using computed-gotos)
More information about the Pyrex
mailing list