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

Rainer Deyke root at rainerdeyke.com
Wed Apr 4 17:39:26 EDT 2001


"Ben Wolfson" <wolfson at midway.uchicago.edu> wrote in message
news:qgLy6.34$C4.1821 at uchinews...
> To me, "not x in list" is confusing--I read it as meaning the same
> thing as "(not x) in list"

So use parenthesis.

To me, 'a is not b' is confusing.  It reads like 'a is (not b)', but acts
like 'not (a is b)'.  When I want to check for non-identity, I always use
the form 'not (a is b)'.


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list