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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, benjamin.peterson, brett.cannon, georg.brandl, isoschiz, ncoghlan, pconnell
Date 2013-06-14.09:31:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1371202273.19.0.00769654421367.issue18208@psf.upfronthosting.co.za>
In-reply-to
Content
This is one case of chained comparisons:
http://docs.python.org/3/reference/expressions.html#not-in

"x <= y <= z" is equivalent to "(x <= y) and (y <= z)"
"x in y == z" is equivalent to "(x in y) and (y == z)"

There is a jump if the 'in' expression is false, because 'and' should short-circuit the second comparison.
History
Date User Action Args
2013-06-14 09:31:13amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, brett.cannon, georg.brandl, ncoghlan, benjamin.peterson, pconnell, isoschiz
2013-06-14 09:31:13amaury.forgeotdarcsetmessageid: <1371202273.19.0.00769654421367.issue18208@psf.upfronthosting.co.za>
2013-06-14 09:31:13amaury.forgeotdarclinkissue18208 messages
2013-06-14 09:31:13amaury.forgeotdarccreate