This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author georg.brandl
Recipients Damjan.Košir, georg.brandl
Date 2012-03-10.18:11:06
SpamBayes Score 0.00497115
Marked as misclassified No
Message-id <1331403067.24.0.38318710951.issue14247@psf.upfronthosting.co.za>
In-reply-to
Content
Chaining comparison operators inserts implicit "and" conditions:

  a OP b OP c OP d

is equivalent to

  (a OP b) and (b OP c) and (c OP d)

This is most useful with ==, <, <= and so forth, but "in" and "is" also count as comparison ops and have the same precedence.
History
Date User Action Args
2012-03-10 18:11:07georg.brandlsetrecipients: + georg.brandl, Damjan.Košir
2012-03-10 18:11:07georg.brandlsetmessageid: <1331403067.24.0.38318710951.issue14247@psf.upfronthosting.co.za>
2012-03-10 18:11:06georg.brandllinkissue14247 messages
2012-03-10 18:11:06georg.brandlcreate