Thread
:
Python 2.5
View Single Post
Apr 15th, 2006, 9:56 AM
#
2
Sane
Programming Guru
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,013
Rep Power:
6
This is one part they added:
http://docs.python.org/dev/whatsnew/node3.html
(
Toggle Plain Text
)
x = true_value if condition else false_value
x = true_value if condition else false_value
And what was wrong with:
(
Toggle Plain Text
)
x = (true_value, false_value)[x==False]
x = (true_value, false_value)[x==False]
Geez...
Sane
View Public Profile
Find More Posts by Sane