[issue7338] recursive __attribute__ -> Fatal Python error: Cannot recover from stack overflow.

Antoine Pitrou report at bugs.python.org
Tue Nov 17 12:10:24 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

This is normal. By doing "except: return self.x", you are reinvoking
__getattribute__ as soon as the RuntimeError is raised, and forcing the
interpreter into another infinite recursion.

----------
nosy: +loewis, pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7338>
_______________________________________


More information about the Python-bugs-list mailing list