Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: > Having a snippet deterministically reproducing the problem > would really help in any case. Here you are. Don't ask how I found this.
The attached script, when run, prints (KeyError(), ValueError()) (KeyError(), None) The current exception context (tstate->exc_value) is lost when a generator is deleted, if it was paused inside a "try" block. This is the cause of the crash: the gc runs inside PyErr_SetObject and collects such a generator. Added file: http://bugs.python.org/file11180/lostcontext.py _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3611> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com