Thread: Python 2.5
View Single Post
Old Apr 15th, 2006, 9:56 AM   #2
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,013
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
This is one part they added: http://docs.python.org/dev/whatsnew/node3.html

x = true_value if condition else false_value

And what was wrong with:
x = (true_value, false_value)[x==False]

Geez...
Sane is offline   Reply With Quote