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

Dan Schmidt dfan at dfan.org
Sat Feb 8 00:55:32 CET 2003


Donald McCarthy <paddy3118 at tiscali.co.uk> writes:

| So an if to the right of an equals sign is the ternary operator.

But a large part of the time I would use a ternary operator, it
wouldn't be to the right of an equals sign, it would be in an argument
list.

Dan

-- 
http://www.dfan.org




More information about the Python-list mailing list