Ternary Operator

Toby J Sargeant tjs at mail.csse.monash.edu.au
Fri May 18 12:22:22 EDT 2001


On Fri, May 18, 2001 at 05:38:03PM +0200, Marco Mariani wrote:
> On Fri, May 18, 2001 at 05:45:27PM +0200, Stefan Kirchberg wrote:
> 
> > Now, how about
> >         [b,c][not a]
> > -?
> 
> Done for ages, works well.

Also evaluates both b and c, which might not be whatYouWant(tm).

toby.




More information about the Python-list mailing list