[issue5218] Check for tp_iter in ceval:ext_do_call before overriding exception message

Guilherme Polo report at bugs.python.org
Wed Feb 11 22:34:34 CET 2009


Guilherme Polo <ggpolo at gmail.com> added the comment:

Thanks for taking a look, my bad for taking so long to reply.

I'm adding a new patch now. This one, besides the fix needed mentioned
above, disregards tp_iter from old class instances (since they are
always available and tell us nothing).

Added file: http://bugs.python.org/file13037/check_before_overriding.diff

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


More information about the Python-bugs-list mailing list