]> granicus.if.org Git - python/commitdiff
Doc and NEWS changes due to Jeremy adding traceback objects to gc.
authorTim Peters <tim.peters@gmail.com>
Tue, 23 Oct 2001 01:59:54 +0000 (01:59 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 23 Oct 2001 01:59:54 +0000 (01:59 +0000)
Doc/lib/libsys.tex
Misc/NEWS

index 4059e02de4690451ebf8635187ea085fe3c7edbe..895ba9118465047b93320cc136830ea556f16ce5 100644 (file)
@@ -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}
index 13f3fb57ade5ff6ed5871a0a9cb073b8573abee7..4fc5c1d8094fe018c7771083f785dd79cc9bf83b 100644 (file)
--- 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