For review: PEP 308 - If-then-else expression
James J. Besemer
jb at cascade-sys.com
Sat Feb 15 18:41:30 EST 2003
Stephen Horne wrote:
> On Sat, 08 Feb 2003 11:02:49 -0800, Erik Max Francis <max at alcyone.com>
> wrote:
>
>>but there's no
>>reaosn there couldn't be other ternary operators having nothing to do
>>with the conditional operator.
>
> What a horrible thought! Next, you'll be suggesting quaternary
> operators!
>
> (sorry)
Fact of the matter, PEP308, as written, with the elif: clause, is an N-ary
operator.
--jb
--
James J. Besemer 503-280-0838 voice
2727 NE Skidmore St. 503-280-0375 fax
Portland, Oregon 97211-6557 mailto:jb at cascade-sys.com
http://cascade-sys.com
More information about the Python-list
mailing list