On Fri, May 23, 2008 at 2:25 PM, Moishy Gluck <[EMAIL PROTECTED]> wrote:
> I came in python around 2.5. So I've been using "Boolean and 1 or 2".

For Python 2.5 you should use the new syntax
  1 if Boolean or 2

It doesn't have the problems of the unofficial syntax you quote.

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to