In article <[EMAIL PROTECTED]>, Bjoern Schliessmann <[EMAIL PROTECTED]> wrote:
> Michael Hobbs wrote: > > > That is, assume that the expression ends at the colon, not at the > > newline. That would make this type of statement possible: > > if color == red or > > color == blue or > > color == green: > > return 'primary' > > Right now, such a statement would have to be spelled thus: > > if color == red or \ > > color == blue or \ > > color == green: > > return 'primary' > > or > > if (color == red or > > color == blue or > > color == green): > > return 'primary' > > What about > > if color == red or blue or green: > return 'primary' What about if color in [red, blue, green]: return 'primary' ________________________________________________________________________ TonyN.:' [EMAIL PROTECTED] ' <http://www.georgeanelson.com/> -- http://mail.python.org/mailman/listinfo/python-list