"not x in" vs. "x not in"

deadmeat root at [127.0.0.1]
Wed Apr 4 16:58:35 EDT 2001


> To me, "not x in list" is confusing--I read it as meaning the same
> thing as "(not x) in list"

I read it as not (x in list)... "x in list" is the comparison, "not" inverts
the result of that comparison.  ie. plain ol' boolean logic

but that's just me :)






More information about the Python-list mailing list