I know that it is wrong to do this, but I try to understand what is going on behind the scenes (and if you could potentially duck-type a class for extending it). The code is as follows:
>>> a = 2
>>> class C(a):
...     pass
...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: int() takes at most 2 arguments (3 given)
I'm trying to understand why int() would be called in this example. It is the type of a but I don't get why that is important here.
 
     
     
    