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 r.david.murray
Recipients Gerrit.Holl, r.david.murray
Date 2014-06-11.22:46:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402526781.6.0.301638100571.issue21728@psf.upfronthosting.co.za>
In-reply-to
Content
See issue 7963 for a clue to why you get this message.  That is, it is object.__new__ that is getting called, not object.__init__, and __new__ methods result in different error messages than __init__ methods.  I don't know if there is a practical way to make it better.  For example you also have this:

>>> a = A('abc', 'xyz')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: decoding str is not supported
>>> a = A('abc', 2, 3, 54)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: str() takes at most 3 arguments (4 given)
History
Date User Action Args
2014-06-11 22:46:21r.david.murraysetrecipients: + r.david.murray, Gerrit.Holl
2014-06-11 22:46:21r.david.murraysetmessageid: <1402526781.6.0.301638100571.issue21728@psf.upfronthosting.co.za>
2014-06-11 22:46:21r.david.murraylinkissue21728 messages
2014-06-11 22:46:21r.david.murraycreate