On 11/6/06, Hill, Greg <[EMAIL PROTECTED]> wrote:
print ($value) ? 'match' : 'not a match';
Yay for tertiary operators. Of course, Python may or may not have
those, I wouldn't know. I'm a Perl bigot.
Python does, but not quite using the same syntax:
http://diveintopython.org/power_of_introspection/and_or.html#d0e9975
I do love ternary operations in C++, maybe a little too much.
Regards,
Bryan Petty
/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/