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 cool-RR
Recipients cool-RR
Date 2020-01-04.18:52:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578163945.77.0.403027118696.issue39212@roundup.psfhosted.org>
In-reply-to
Content
I recently got this familiar error:

    builtins.TypeError: __init__() takes 1 positional argument but 2 were given

It was annoying that I didn't know which `__init__` method was under discussion. I wish that Python used the `__qualname__` of the function to show this error message (and maybe others?) so it'll show like this: 

    builtins.TypeError: FooBar.__init__() takes 1 positional argument but 2 were given

If I'm not mistaken, the implementation of this error is in getargs.c in the function vgetargs1_impl.
History
Date User Action Args
2020-01-04 18:52:25cool-RRsetrecipients: + cool-RR
2020-01-04 18:52:25cool-RRsetmessageid: <1578163945.77.0.403027118696.issue39212@roundup.psfhosted.org>
2020-01-04 18:52:25cool-RRlinkissue39212 messages
2020-01-04 18:52:25cool-RRcreate