I have a simple class below,
class MyClass(int): def __index__(self): return 1
According to operator.index documentation,