Re: [Cython] [Pyrex] switch statement

Robert Bradshaw <[email protected]>
Newsgroups gmane.comp.python.cython.devel,gmane.comp.python.pyrex
Message-ID <[email protected]>
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.