On Fri, Feb 7, 2020 at 1:48 AM Mark Shannon <m...@hotpy.org> wrote:

> Including the function name in the error message is misleading.
>
> "TypeError: print() argument after * must be an iterable, not int"
> implies that the error is related to `print`. It is not; the error is
> entirely on the caller's side. The object being called is irrelevant.
>

That's true, but the function name may help the user find the right call in
the code if there are multiple calls on the line.

-- 
--Guido van Rossum (python.org/~guido)
*Pronouns: he/him **(why is my pronoun here?)*
<http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/LON4C7BKHOI2V2BPW7EOMEPGMBFPRJRI/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to