For review: PEP 308 - If-then-else expression

Erik Max Francis max at alcyone.com
Sun Feb 9 20:08:53 EST 2003


Anthony Baxter wrote:

> > We could then also have one for ints rather than bools:
> >
> >         i -> [ v_0, v_1, v_2, ... ]
> > which would pick v_i and evaluate that.
> 
> On the other hand, I don't like this. If you need to do something like
> this, why not just
> 
>           [ v_0, v_1, v_2, ... ][i]  ?

Lazy evaluation.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ Light ... more light!
\__/ (the last words of Goethe)
    Bosskey.net / http://www.bosskey.net/
 A personal guide to online multiplayer first person shooters.




More information about the Python-list mailing list