Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:

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

How did you get the fully qualified exception? I just get "TypeError". (Also 
the error message is different in 3.8.)


> It was annoying that I didn't know which `__init__` method was under 
> discussion.

Couldn't you tell from the stacktrace showing the failed line of code?

I don't know about this. While I can certainly see that there are circumstances 
where it might be useful (e.g. you're running a .pyc file and there's no source 
line available), I think that in the majority of the cases showing 
fully-qualified names would be more annoying than useful, and certainly more 
intimidating to beginners.

----------
nosy: +steven.daprano

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

Reply via email to