define 'in' operator on lists

Peter Otten __peter__ at
Mon Oct 11 16:03:31 CEST 2004

Michael Hoffman wrote:

> Duncan Booth wrote:
>>>>>def containedinsequence(short, long):
> It's probably a good idea not to shadow the long built-in.

Relax. It's only shadowed inside a function that doesn't use the builtin


PS: For me to make that U-turn it took GvR pointing out the obvious:

More information about the Python-list mailing list