This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients pitrou
Date 2008-09-12.20:06:54
SpamBayes Score 1.6123626e-05
Marked as misclassified No
Message-id <1221250015.74.0.0718109598315.issue3850@psf.upfronthosting.co.za>
In-reply-to
Content
find_recursion_limit.py in trunk is broken: it fails with an
AttributeError while a RuntimeError is expected. This has appeared due
to the recent changes in recursion limit handling, but the problem is
deeper. As I explained on the ML, functions like PyDict_GetItem()
discard any exception that occur inside them, and return NULL instead.
The caller can then interpret the NULL as an "attribute missing" and
raise AttributeError.

The obvious quick fix is to replace "except RuntimeError" with "except
(RuntimeError, AttributeError)" in find_recursion_limit.py.
History
Date User Action Args
2008-09-12 20:06:55pitrousetrecipients: + pitrou
2008-09-12 20:06:55pitrousetmessageid: <1221250015.74.0.0718109598315.issue3850@psf.upfronthosting.co.za>
2008-09-12 20:06:54pitroulinkissue3850 messages
2008-09-12 20:06:54pitroucreate