[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Conditional expressions in Python 2.5
- From: Mildred <ml.mildred593@...>
- Date: Tue, 19 Sep 2006 23:47:06 +0200
> x = true_value if condition else false_value"
Why not :
x = if condition then true_value else false_value end
Maybe it is not possible ... But I like this kind of syntax.
--
Mildred <xmpp:mildred@jabber.fr> <http://mildred632.free.fr/>
Clef GPG : <hkp://pgp.mit.edu> ou <http://mildred632.free.fr/gpg_key>
Fingerprint : 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B]