main logo
Subject: Re: [ProPython] Fwd: [Info] PEP 308 accepted - new conditionalexpressions
Author: Ed Leafe
Posted: 2005/09/30 10:24:20
 
View Entire Thread
New Search


On Sep 30, 2005, at 11:05 AM, Kevin Cully wrote:

> Wow. I think this change really increases the readability of that
> command. Of course, I'm not really of a Pythonista mindset yet.

It looks like Fox's IIF() construct: a nice shorthand for

if [test]:
x = [some val]
else:
x = [some other val]


-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com






 
©2005 Ed Leafe
<-- Prior Message New Search Next Message -->