[Python-Dev] Uninformative error message about subclassing (original) (raw)
Edward C. Jones edcjones at erols.com
Mon May 31 10:13:33 EDT 2004
- Previous message: [Python-Dev] Why aren't more things weak referencable
- Next message: [Python-Dev] Uninformative error message about subclassing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-Dev] Why aren't more things weak referencable
- Next message: [Python-Dev] Uninformative error message about subclassing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]