I need to overload the operator in and let him
return an object ... It seems it is not a
behavior Python expect :
.... def __contains__(self,a):>>class A:
.... return 'yop'
....
True>>a=A()
print 'toto' in a
yop>>print a.__contains__('toto')
I don't know if it's a bug or a feature but i
really need this overloading and don't know
how to do it ... Furthermore I can't use
a trick of the kind : a |in| b ... because
my overloaded operator must be called by : a in b ...
Is someone could help me ?