Message359430
> 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. |
|
Date |
User |
Action |
Args |
2020-01-06 14:56:41 | cool-RR | set | recipients:
+ cool-RR, steven.daprano |
2020-01-06 14:56:41 | cool-RR | set | messageid: <1578322601.41.0.383953374735.issue39212@roundup.psfhosted.org> |
2020-01-06 14:56:41 | cool-RR | link | issue39212 messages |
2020-01-06 14:56:41 | cool-RR | create | |
|