New submission from Ryan Gonzalez:

e.g. make this:


class X:
    def __init__(self): pass

X(1)


print something like this:


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


instead of:


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


I'm trying to see if I can create a patch right now, though it probably won't 
be ready until Thursday.

----------
components: Interpreter Core
messages: 279460
nosy: Ryan.Gonzalez
priority: normal
severity: normal
status: open
title: Show the qualified name when a call fails
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28536>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to