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 serhiy.storchaka
Date 2019-03-13.20:44:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552509892.53.0.404929677362.issue36282@roundup.psfhosted.org>
In-reply-to
Content
Due to minor error, the error message for too many positional arguments is not accurate if the function uses Argument Clinic.

For example:

>>> int.from_bytes(b'a', 'little', False)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: from_bytes() takes at most 2 positional arguments (3 given)

This is correct, but not accurate, because from_bytes() takes *exactly* 2 positional arguments.
History
Date User Action Args
2019-03-13 20:44:52serhiy.storchakasetrecipients: + serhiy.storchaka
2019-03-13 20:44:52serhiy.storchakasetmessageid: <1552509892.53.0.404929677362.issue36282@roundup.psfhosted.org>
2019-03-13 20:44:52serhiy.storchakalinkissue36282 messages
2019-03-13 20:44:52serhiy.storchakacreate