lp:~cjwatson/storm/py3-traceback-reference-cycles
Created by
Colin Watson
and last modified
- Get this branch:
- bzr branch lp:~cjwatson/storm/py3-traceback-reference-cycles
Only
Colin Watson
can upload to this branch. If you are
Colin Watson
please log in for upload directions.
Branch merges
Propose for merging
- Ioana Lasc (community): Approve
- Storm Developers: Pending requested
-
Diff: 36 lines (+16/-4)2 files modifiedNEWS (+8/-0)
storm/exceptions.py (+8/-4)
Branch information
Recent revisions
- 572. By Colin Watson
-
Avoid traceback reference cycles when wrapping exceptions.
`wrap_exceptions` stored the original exception's traceback in a local
variable, but the traceback in turn contains a reference to that frame,
creating a reference cycle. The situation is worse on Python 3, because the
original exception also has the associated traceback as a `__traceback__`
attribute, producing more complicated reference cycles. Delete these local
variables before returning to avoid leaking memory over time.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:storm