summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-10-23 01:59:54 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-10-23 01:59:54 (GMT)
commit98791affc8d04ea7ad0303d67b6666b27bbd4bb7 (patch)
tree30da9a1e4bd57e78840d06660b5a9939efe314ce
parentfd14d8e18723665578efe0a1416b134906075b78 (diff)
downloadcpython-98791affc8d04ea7ad0303d67b6666b27bbd4bb7.zip
cpython-98791affc8d04ea7ad0303d67b6666b27bbd4bb7.tar.gz
cpython-98791affc8d04ea7ad0303d67b6666b27bbd4bb7.tar.bz2
Doc and NEWS changes due to Jeremy adding traceback objects to gc.
-rw-r--r--Doc/lib/libsys.tex5
-rw-r--r--Misc/NEWS4
2 files changed, 8 insertions, 1 deletions
diff --git a/Doc/lib/libsys.tex b/Doc/lib/libsys.tex
index 4059e02..895ba91 100644
--- a/Doc/lib/libsys.tex
+++ b/Doc/lib/libsys.tex
@@ -109,7 +109,10 @@ It is always available.
exception type and value. If you do need the traceback, make sure
to delete it after use (best done with a \keyword{try}
... \keyword{finally} statement) or to call \function{exc_info()} in
- a function that does not itself handle an exception.}
+ a function that does not itself handle an exception.} \note{Beginning
+ with Python 2.2, such cycles are automatically reclaimed when garbage
+ collection is enabled and they become unreachable, but it remains more
+ efficient to avoid creating cycles.}
\end{funcdesc}
\begin{datadesc}{exc_type}
diff --git a/Misc/NEWS b/Misc/NEWS
index 13f3fb5..4fc5c1d 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -16,6 +16,10 @@ Extension modules
Library
+- Traceback objects are now scanned by cyclic garbage collection, so
+ cycles created by casual use of sys.exc_info() no longer cause
+ permanent memory leaks (provided garbage collection is enabled).
+
Tools/Demos
Build