[EMAIL PROTECTED] wrote: > Jason Stitt wrote: > >>Using // for 'in' looks really weird, too. It's too bad you can't >>overload Python's 'in' operator. (Can you? It seems to be hard-coded >>to iterate through an iterable and look for the value, rather than >>calling a private method like some other builtins do.) > [snip] > > Python "in" clause doesn't seem exploitable in any way
Sure it is. Just override __contains__. STeVe -- http://mail.python.org/mailman/listinfo/python-list