[Patches] Patch: AttributeError and NameError: second attempt.
M.-A. Lemburg
mal@lemburg.com
Fri, 26 May 2000 15:52:57 +0200
Guido van Rossum wrote:
>
> > Note that you'll only print the exception in interactive sessions
> > or when writing it to log files. In both cases, performance is
> > not relevant, but information quality is. Only having the object
> > around doesn't always help, because there may be more context
> > needed in order to find the bug. The locals printout I'm using
> > has helped me quite a few times and is a great development
> > tool.
>
> Sorry for the barrage of messages showing me thinking aloud. I'm
> beginning to realize what makes me feel uneasy with Nick's approach.
> This kind of user-friendliness should really be in the tools, not in
> the core language implementation! And the friendliness should only be
> paid for when a traceback is printed.
+1 on this and +1 on Nick's idea to increase user friendliness
of Attribute- and NameErrors in general.
> For example, IDLE prints its own traceback. It has the stack frame
> available too (via sys.exc_traceback). It could easily detect a
> NameError or AttributeError and do the various checks for misspelled
> identifiers. This is where it should be fixed. (In fact, it should
> be made available in general e.g. through the traceback module so it
> can also be added to other IDEs like Pythonwin or ActivePython.)
What's ActivePython ? An IDE from ActiveState.com ?
--
Marc-Andre Lemburg
______________________________________________________________________
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/