[Patches] Patch: AttributeError and NameError: second attempt.
Fred L. Drake
fdrake@acm.org
Fri, 26 May 2000 07:55:08 -0700 (PDT)
On Fri, 26 May 2000, Greg Ward wrote:
> I think Nick's patch is on the borderline between tweak and fancy stuff;
> perhaps a toned-down version (eg. friendlier messages, but skip the O(n)
> search through a namespace) would be acceptable?
I see no problem with the functionality from Nick's patch; this is
exactly te sort of thing what's needed, including at the basic interactive
prompt.
If pushing it into the traceback module makes Guido happy about it,
that's good enough for me. The only important factor I see here is that
the cost is only paid when the traceback is actually dumped, but I'd be
just as happy (happier?) if it was done in the __str__ of the NameError.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>