Jaime Wyant wrote:

# This won't work
if a > 5: print "a > 5";else print "Doh"

This will:

["Doh", "a > 5"][a > 5]

I highly discourage using it though--it's somewhat obtuse.
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to