This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Gerrit.Holl
Recipients Gerrit.Holl
Date 2014-06-11.22:06:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402524417.59.0.0212668512702.issue21728@psf.upfronthosting.co.za>
In-reply-to
Content
When I initialise a class that doesn't define its own __init__, but I still pass arguments, the error message is confusing:

>>> class A: pass
... 
>>> A(42)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: object() takes no parameters

Although it is correct that object() takes no parameters, it would be more correct to state that A() does not take any parameters.
History
Date User Action Args
2014-06-11 22:06:57Gerrit.Hollsetrecipients: + Gerrit.Holl
2014-06-11 22:06:57Gerrit.Hollsetmessageid: <1402524417.59.0.0212668512702.issue21728@psf.upfronthosting.co.za>
2014-06-11 22:06:57Gerrit.Holllinkissue21728 messages
2014-06-11 22:06:57Gerrit.Hollcreate