[issue19235] Add a dedicated subclass for recursion errors

Georg Brandl report at bugs.python.org
Sun Oct 13 18:30:34 CEST 2013


Georg Brandl added the comment:

Attached is a patch, please review.  Introduces a RecursionError that subclasses RuntimeError for compatibility.

Note: I also tested this with RecursionError not subclassing RuntimeError, to make sure that except clauses in the test suite are sufficiently narrowed to RecursionError.

----------
keywords: +patch
Added file: http://bugs.python.org/file32091/recursion_error.patch

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


More information about the Python-bugs-list mailing list