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

Kristian Ovaska kristian.ovaska at helsinki.fi
Wed Apr 4 12:05:59 EDT 2001


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

-- 
Kristian Ovaska <kristian.ovaska at helsinki.fi>



More information about the Python-list mailing list