ternary operator

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Mon Feb 10 23:09:46 EST 2003


> From: Mel Wilson [mailto:mwilson at the-wire.com]
> 
> As a COBOL programmer, I want
> 
>     if a < 3:
>         less_than_3_thing ()
>     elif 7:
>         less_than_7_thing ()
>     elif 92:
>         some_other_thing ()
>     else:
>         not_appearing_in_the_above_code ().

I must say, I don't remember that from my two weeks of COBOL programming on work experience for school back in 1989(?).

> Python does COMPLETELY the WRONG THING  with this.

<wink> That's just sick.

Tim Delaney





More information about the Python-list mailing list