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 serhiy.storchaka
Recipients rhettinger, scoder, serhiy.storchaka, vstinner
Date 2017-06-01.09:17:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496308660.84.0.645136172059.issue30534@psf.upfronthosting.co.za>
In-reply-to
Content
The details can be different. For example:

>>> 1 .__add__(x=2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: wrapper __add__ doesn't take keyword arguments

The message contains the word "wrapper" and doesn't contains parenthesis. I think it can be extended for containing the type name ("int.__add__()" or "wrapper __add__ of in objects"), and this hard to do with general _PyErr_NoKeywords(). Let first unify messages, then try to add more useful information in messages and create a general API if this is possible.
History
Date User Action Args
2017-06-01 09:17:40serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, scoder, vstinner
2017-06-01 09:17:40serhiy.storchakasetmessageid: <1496308660.84.0.645136172059.issue30534@psf.upfronthosting.co.za>
2017-06-01 09:17:40serhiy.storchakalinkissue30534 messages
2017-06-01 09:17:40serhiy.storchakacreate