[Python-Dev] Reference cycles in Exception.__traceback__
Yury Selivanov
yselivanov.ml at gmail.com
Wed Mar 5 17:51:42 CET 2014
More information about the Python-Dev mailing list
Wed Mar 5 17:51:42 CET 2014
- Previous message: [Python-Dev] Reference cycles in Exception.__traceback__
- Next message: [Python-Dev] What is the precise problem? [was: Reference cycles in Exception.__traceback__]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2014-03-05, 11:37 AM, Victor Stinner wrote: > [snip] > > I tried to write "views" of the traceback (and frames), but > Exception.__traceback__ rejects types other than traceback and > traceback instances cannot be created. It's possible to store the > traceback somewhere else and set Exception.__traceback__ to None, but > there is still the problem with chained exceptions. > Can we allow instantiation of types.FrameType and types.TracebackType? If it's allowed, we can write a simple code, that will recreate tracebacks with cleaned-up frames without references to locals etc. Yury
- Previous message: [Python-Dev] Reference cycles in Exception.__traceback__
- Next message: [Python-Dev] What is the precise problem? [was: Reference cycles in Exception.__traceback__]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list