In [3]:
a = int(10)
a
type(a)
int.__base__


Out[3]:
object

In [4]:
class MyInt(int):
    def __getitem__(self, key):
        return key + str(self)
    
a = MyInt(1)
b = MyInt(2)
print(a+b)
a['key']

MyInt.__class__


3
Out[4]:
type

In [ ]: