[Python-Dev] Re: More informative error messages

Guido van Rossum guido at python.org
Wed Oct 8 11:30:00 EDT 2003

> Would it be possible to have this code at IDE-level? E.g., is possible
> for Idle to catch TypeError's and try to find out whether this is about
> the number of arguments to a callable, and if so, try to find out whether
> it is about a method or a function? This is of course a lot of overhead,
> but since it is only for an interactive session, I think this is not a big
> problem, or am I mistaken here?

It could be done, probably with 99% reliability.  But there are many
IDEs out there, and many people don't run their code under an IDE at
all, so it would be much preferred to do it in the VM.

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

More information about the Python-Dev mailing list