[issue6028] Interpreter aborts when chaining an infinite number of exceptions

Yury report at bugs.python.org
Sun Dec 25 00:42:43 CET 2011


Yury <yury.sobolev at gmail.com> added the comment:

Rather than aborting with a stack overflow, I feel it is more natural to raise an exception. If it is not too difficult to implement, perhaps another type of exception should be raised. Since chained exceptions are new to 3.x, there should be a new exception to describe errors that happen in chaining. Perhaps stopping chaining at a certain depth and truncating all further exceptions with a blanket "ChainingException" exception. Or perhaps truncating the chain and wrapping it in another exception before returning it to user code.

While this is my proposed solution, I apologize I cannot volunteer to write the patch. The time investment on my part would involve learning most of the working of the interpreter. Perhaps someone who is already familiar with it would be interested.

----------

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


More information about the Python-bugs-list mailing list