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

Joshua Marshall jmarshal at mathworks.com
Wed Apr 4 18:03:05 EDT 2001


Rainer Deyke <root at rainerdeyke.com> wrote:

> 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)'.

I suggest a new operator:

  a ain't b



More information about the Python-list mailing list