Ram Rachum <[email protected]> added the comment:
> But I *did* get that text. I'm asking how you got the *different* text
> which you gave in your initial request.
Oh, right. Looking back, turns out Wing IDE did that for me. Didn't notice,
sorry.
> So in my opinion, and I recognise that you may disagree, this is only of
> benefit in a minority of cases. For the majority of cases, it will only
> be additional noise in the message that adds nothing that wasn't already
> obvious from the source line.
I understand your perspective.
One correction though regarding adding noise to the error. You gave this
example:
builtins.TypeError: package.some_module.MyClass.__init__ takes 1 positional
argument but 2 were given
While actually it'll be:
TypeError: MyClass.__init__ takes 1 positional argument but 2 were given
Since __qualname__ only includes the class, not its module. So it's quite a bit
shorter.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39212>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com