3 ms·
Not necessarily. Python objects can declare a `__contains__` function (such that `x in y` corresponds to `x.__contains__(y)`): https://docs.python.org/3.5/refe
by yunruse 10y ago
Not necessarily. Python objects can declare a `__contains__` function (such that `x in y` corresponds to `x.__contains__(y)`):
https://docs.python.org/3.5/reference/datamodel.html#object.__contains__ https://docs.python.org/3.5/reference/datamodel.html#object....