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

Roman Suzi rnd at onego.ru
Mon Feb 10 06:21:57 CET 2003


On Sun, 9 Feb 2003, Erik Max Francis wrote:

>Paul Rubin wrote:
>
>> It's my favorite too, at this point.
>
>And, as I pointed out when I first suggested it (though later found out
>that I was not the first) -- and which Andrew Koenig reminded me (again,
>independently) of in email -- it easily lends itself quite easily to
>multiway extension:
>
>	if C1: x elif C2: y else: z

It is not very clear in nested variant as the code is not readable
any more... Guido can drop indents in Python as well.

Also, if this is to happen, next logical step will be this:

try: x except: y


Sincerely yours, Roman Suzi
-- 
rnd at onego.ru =\= My AI powered by Linux RedHat 7.3






More information about the Python-list mailing list