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

Greg Ewing greg at cosc.canterbury.ac.nz
Fri Apr 6 00:14:27 EDT 2001


Kristian Ovaska wrote:
> 
> Why is there a "not in" operator? For clarity?

Speed? x not in y is one operation, not (x in y)
is two.

-- 
Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:	  
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list