[Python-Dev] Uninformative error message about subclassing
Edward C. Jones
edcjones at erols.com
Mon May 31 10:13:33 EDT 2004
Here are two small python files:
----
a.py:
class A(object):
pass
----
b.py:
import a
class B(a):
pass
----
If I run "python b.py" I get the uninformative error message:
Traceback (most recent call last):
File "./b.py", line 5, in ?
class B(a):
TypeError: function takes at most 2 arguments (3 given)
I think the message should say that "a" is not a class.
More information about the Python-Dev
mailing list