"not x in" vs. "x not in"
Ben Wolfson
wolfson at midway.uchicago.edu
Wed Apr 4 16:14:14 EDT 2001
In article <oihmctopeloiihkfk3jb3icnvrdoemm402 at news.mbnet.fi>,
Kristian Ovaska <kristian.ovaska at helsinki.fi> wrote:
>list = [1,2,3,4]
>not 5 in list
>5 not in list
>
>Why is there a "not in" operator? For clarity?
>
>(Not that I oppose "not in" in any way. I like it. I'm just curious.)
To me, "not x in list" is confusing--I read it as meaning the same
thing as "(not x) in list"
--
Barnabas T. Rumjuggler
The women come and go,
Speaking of the Regis Philbin Show
-- Joe Frank
More information about the Python-list
mailing list