[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Conditional expressions in Python 2.5
- From: Asko Kauppi <askok@...>
- Date: Tue, 19 Sep 2006 23:15:39 +0300
Some of the background on http://docs.python.org/dev/whatsnew/
pep-308.html sounds _more_ than familiar...
"There have been endless tedious discussions of syntax .."
"Candidates included C's cond ? true_v : false_v, if cond then true_v
else false_v, and 16 other variations." (16!)
"Guido van Rossum eventually chose a surprising syntax:
x = true_value if condition else false_value"
I am _NOT_ suggesting Lua to do the same. But bringing this up,
since it does seem relevant. And weird. ;)
-asko