True == 1 weirdness

Chris Angelico rosuav at gmail.com
Wed Sep 16 16:57:08 CEST 2015


On Wed, Sep 16, 2015 at 11:45 PM, Watson, Paul <pwatson at phs.org> wrote:
> In terms of operator precedence, is "==" evaluated before "in"?

No, they're at the same precedence level. Within that, all comparison
operators are evaluated left-to-right, with the chaining that was
described earlier.

ChrisA


More information about the Python-list mailing list