A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-March/132934.html below:

[Python-Dev] Reference cycles in Exception.__traceback__

[Python-Dev] Reference cycles in Exception.__traceback__ [Python-Dev] Reference cycles in Exception.__traceback__Yury Selivanov yselivanov.ml at gmail.com
Wed Mar 5 17:51:42 CET 2014
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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4