Override Python’s ‘in’ operator?
If I am creating my own class in Python, what function should I define so as to allow the use of the in operator, e.g.
If I am creating my own class in Python, what function should I define so as to allow the use of the in operator, e.g.