[Python-3000] Changing function-related TypeErrors

Guido van Rossum guido at python.org
Mon May 8 04:45:22 CEST 2006


On 5/7/06, Collin Winter <collinw at gmail.com> wrote:
> This -- more intuitive error messages -- is really what I'm after, and
> while you may think of type of "def foo(a, b, c):..." as "a function
> with three required arguments", I'd wager that most Python
> programmers, if asked what type foo has, would say simply, "it's a
> function".

Then introducing a new exception isn't going to make a difference.
Feel free to submit a patch that improves the wording of the text of
the error messages.

--
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list