Mercurial > cpython-lru_cache-weakref
comparison Python/codecs.c @ 48887:c562c8dae49a
Issue 3611: in some cases (a __del__ re-raising an exception, when called from inside
an 'except' clause), the exception __context__ would be reset to None.
This crases the interpreter if this precisely happens inside PyErr_SetObject.
- now the __context__ is properly preserved
- in any case, PyErr_SetObject now saves the current exc_value in a local variable, to
avoid such crashes in the future.
Reviewer: Antoine Pitrou.
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Fri, 29 Aug 2008 07:13:32 +0000 |
| parents | 2284fa89ab08 |
| children | efef5fc45a9a |
comparison
equal
deleted
inserted
replaced
| 48886:6ceb7c89e776 | 48887:c562c8dae49a |
|---|
