[Baypiggies] What is happening here with true/false comparisons
Asher Langton
langton2 at llnl.gov
Tue Jan 26 00:20:25 CET 2010
On Jan 25, 2010, at 3:03 PM, Damon McCormick wrote:
> Since 'in' is just another comparison operator, it works the same
> way. Thus, the the original expression
>
> >>> a in alist == b in alist
> is equivalent to
> >>>(a in alist) and (alist == b) and (b in alist)
Thanks for the correction. I don't typically use chained expressions,
and I had no idea that dissimilar operators like '==' and 'in' could
be chained like that.
-Asher
More information about the Baypiggies
mailing list