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
On Wed, May 21, 2008 at 12:00 PM, Moishy Gluck <[EMAIL PROTECTED]> wrote:
> You appear to be referring to list comprehension.
No, it is not a list comp. See my separate reply.
Kent
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/