not in

roxanne claire gregnro at swbell.net
Tue Jan 22 01:30:26 EST 2002


> Additionally, Python 2.3 will have the "is not in" operator,
> which will tell you when an object is on its lunch break:
> 
>     if jason is not in:
>         in_box.insert(1, message)

Which, interestingly enough, will _not_ be semantically equivalent to
"not (jason is in)", since "jason is in" would require a second operator
to be syntactically correct.

Greg Goodman



More information about the Python-list mailing list