Learing Python, Newbie question

Michael Abbott michael at rcp.co.uk
Fri Oct 26 02:49:10 EDT 2001


Klaus Alexander Seistrup <nospam2001oct at magnetic-ink.dk> wrote in 
news:40d4f326-da3d-493a-8b28-9c3d0223feb4 at zigzag.magnetic-ink.dk:

> Johannes Gamperl wrote:
> 
> The "a ? b : c" that we know from C can be emulated in Python by
> 
>      ((a and [b]) or [c])[0]

Pretty, isn't it :(



More information about the Python-list mailing list