Inheritance doesn't work

Fredrik Lundh fredrik at pythonware.com
Mon Dec 4 12:02:07 EST 2006


John Salerno wrote:

> How do you get that error with that code?

$ python

 >>> import os
 >>> class foo(os):
...     pass
...
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
TypeError: Error when calling the metaclass bases
     module.__init__() takes at most 2 arguments (3 given)

</F>




More information about the Python-list mailing list