[Python-Dev] Python 2.2a* getattr suggestion and question
Guido van Rossum
guido@python.org
Sun, 30 Sep 2001 14:37:00 -0400
> Sure. Still, I think interpreter diagnostics should be pointing to the
> exact place of trouble. At least, __getattribute__ must appear somewhere
> in the traceback to give a hint where from __repr__ was attempted to be
> called.
When you write a faulty __getattribute__ that returns None instead of
raising AttributeError, it's not realistic to expect __getattribute__
to be in the stack trace.
--Guido van Rossum (home page: http://www.python.org/~guido/)