Message73131
| 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:55 | pitrou | set | recipients:
+ pitrou |
| 2008年09月12日 20:06:55 | pitrou | set | messageid: <1221250015.74.0.0718109598315.issue3850@psf.upfronthosting.co.za> |
| 2008年09月12日 20:06:54 | pitrou | link | issue3850 messages |
| 2008年09月12日 20:06:54 | pitrou | create |
|