[issue42877] TracebackException saves more data than it needs for format

2021-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42877] TracebackException saves more data than it needs for format

2021-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 4c94d74152a511d977fe26a4f3a32b7352ba9024 by Irit Katriel in branch 'master': bpo-42877: add the 'compact' param to TracebackException's __init__ (#24179) https://github.com/python/cpython/commit/4c94d74152a511d977fe26a4f3a32b7352ba9024 -

[issue42877] TracebackException saves more data than it needs for format

2021-01-14 Thread Irit Katriel
Irit Katriel added the comment: As discussed on the PR: Since __context__ is documented, we can't just optimize it away. Instead we add a new param "compact", defaulted to False, which controls whether this optimization should be applied. Module level functions in traceback pass True since

[issue42877] TracebackException saves more data than it needs for format

2021-01-13 Thread Irit Katriel
Change by Irit Katriel : -- title: TracebackException saves more data than it needs -> TracebackException saves more data than it needs for format ___ Python tracker ___ _