summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-08-29 07:13:32 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-08-29 07:13:32 (GMT)
commitdb26f7c13748db526e52501d3ba2856a6e30c7a5 (patch)
tree543064580b5daedb94549cb8bcf5396172492f6b /Misc
parent4f3c5616ccb880f8b5602c2da5c8951b55e4e9dd (diff)
downloadcpython-db26f7c13748db526e52501d3ba2856a6e30c7a5.zip
cpython-db26f7c13748db526e52501d3ba2856a6e30c7a5.tar.gz
cpython-db26f7c13748db526e52501d3ba2856a6e30c7a5.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 3927f9b..5372f0b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,9 @@ What's New in Python 3.0 release candidate 1
Core and Builtins
-----------------
+- Issue #3611: An exception __context__ could be cleared in a complex pattern
+ involving a __del__ method re-raising an exception.
+
- Issue #2534: speed up isinstance() and issubclass() by 50-70%, so as to
match Python 2.5 speed despite the __instancecheck__ / __subclasscheck__
mechanism. In the process, fix a bug where isinstance() and issubclass(),