back

by AdamN·9y ago·view on hn ↗
This would need to be done in Python itself, not Maya. I'd be strongly in favor of it though.
1 comments
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....