On Fri, 2007-08-31 at 12:57 +1200, Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Steve > Holden wrote: > > > But why would you want to ignore built-in support like "value in dict"? > > Because a function can be passed as a value in its own right, a built-in > construct cannot.
...and that's why we have operator.contains(): >>> import operator >>> help(operator.contains) Help on built-in function contains in module operator: contains(...) contains(a, b) -- Same as b in a (note reversed operands). -- Carsten Haese http://informixdb.sourceforge.net -- http://mail.python.org/mailman/listinfo/python-list