You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/amauryfa'closed_at=<Date2008-07-31.01:47:25.644>created_at=<Date2008-04-03.08:58:59.380>labels= ['interpreter-core', 'type-crash', 'release-blocker']
title='PyErr_ExceptionMatches must not fail'updated_at=<Date2008-07-31.01:47:25.609>user='https://github.com/theller'
Then, I can raise that RuntimeError and clear things:
>>> sys.excepthook(*g())
Traceback (most recent call last):
File "<stdin>", line 3, in g
RuntimeError: maximum recursion depth exceeded while calling a Python object
>>> import sys
>>>
The attached patch adds a test for this condition, I hope someone more
test-savvy than I can review it.
Activity
theller commentedon Apr 3, 2008
PyErr_ExceptionMatches must not fail, according to the docs. So an
error code from PyObject_IsSubclass() cannot be returned.
The attached patch calls PyErr_WriteUnraisable in this case, and returns
an arbitrary value (0 was chosen in the patch).
See also issue bpo-2534.
devdanzin commentedon Apr 3, 2008
The tests pass and prints the ignores. But I still see an issue:
Then, I can raise that RuntimeError and clear things:
The attached patch adds a test for this condition, I hope someone more
test-savvy than I can review it.
theller commentedon Apr 4, 2008
Daniel, IMO you've found a separate bug. I added it as issue bpo-2548.
warsaw commentedon Jun 11, 2008
This is a bug, not a new feature so it's not release critical for the
first alphas.
gvanrossum commentedon Jul 9, 2008
FWIW some comments by Amaury are here:
http://codereview.appspot.com/483
gvanrossum commentedon Jul 30, 2008
Ping? Anyone cares about this?
amauryfa commentedon Jul 30, 2008
I am working on Thomas' patch, plus tests.
amauryfa commentedon Jul 31, 2008
Committed r65320 in trunk.
I'll close the issue after it is merged into py3k.
benjaminp commentedon Jul 31, 2008
I just merged it.