[Python-Dev] Switch statement

Georg Brandl g.brandl at gmx.net
Thu Jun 22 21:20:59 CEST 2006

Fredrik Lundh wrote:

> I'm not sure it should, actually -- the primary form is more flexible, 
> and it better matches how things work: it's the expression that's 
> special, not the variable.
> and things like
>      radian = degree * static (math.pi / 180)
> would be pretty nice, for those of us who likes our Python fast.

Nice approach, though I wonder if it's unambiguous enough without
some parenthesizing.


More information about the Python-Dev mailing list