File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,7 +109,10 @@ \section{\module{sys} ---
109109 exception type and value. If you do need the traceback, make sure
110110 to delete it after use (best done with a \keyword {try}
111111 ... \keyword {finally} statement) or to call \function {exc_info()} in
112- a function that does not itself handle an exception.}
112+ a function that does not itself handle an exception.} \note {Beginning
113+ with Python 2.2, such cycles are automatically reclaimed when garbage
114+ collection is enabled and they become unreachable, but it remains more
115+ efficient to avoid creating cycles.}
113116\end {funcdesc }
114117
115118\begin {datadesc }{exc_type}
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ Extension modules
1616
1717Library
1818
19+ - Traceback objects are now scanned by cyclic garbage collection, so
20+ cycles created by casual use of sys.exc_info() no longer cause
21+ permanent memory leaks (provided garbage collection is enabled).
22+
1923Tools/Demos
2024
2125Build
You can’t perform that action at this time.
0 commit comments