Message25363
Logged In: YES
user_id=357491
Yes, Armin, that is a rather evil piece of code. =) But I
have a possible simple solution. =)
If you add a check after the PyExceptionClass_Check() in the
'if' statement that tstate->recursion_depth is greater than
0, you short-circuit the infinite recursion and still get a
sensible output.
I have attached a patch with my proposed changes for
PyObject_Call() and PyErr_NormalizeException() and the
remove of the recursion check for slot_tp_call(). The only
issue I can see with this is if the recursion_depth check
turns out to be too small of a number. But I really doubt
that will be an issue since one shouldn't be having a depth
of tracebacks greater than the current recursion depth.
Let me know what you think of the patch. |
|
Date |
User |
Action |
Args |
2007-08-23 14:31:55 | admin | link | issue1202533 messages |
2007-08-23 14:31:55 | admin | create | |
|