python `in` keyword as a function used in a filter

Viewed 2164

is it possible to use the python keyword in in a filter? I know that binary, unary, assignment operations are equivalent to a function call.

such as

''!=3

is the same as

''.__ne__(3)

is there an analogous thing for the in function? I want to do something like this. ..

filter( list1.__in__, list2 )

I guess this can be accomplished with writing the in function... but i just want to know if it is already built in or not.

4 Answers
Related