A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-May/045025.html below:

[Python-Dev] Uninformative error message about subclassing

[Python-Dev] Uninformative error message about subclassing [Python-Dev] Uninformative error message about subclassingEdward 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4