Most compact "X if X else Y" idiom
jbperez808 at yahoo.com
jbperez808 at yahoo.com
Sun Oct 12 02:15:58 EDT 2008
Thanks, folks.
Short-circuit boolean was the syntax I had in mind which
momentarily escaped me, but the "if not x: x='blah'" idiom
was instructive as well.
More information about the Python-list
mailing list