[issue31299] Add "ignore_modules" option to TracebackException.format()

2021-08-31 Thread Irit Katriel
Irit Katriel added the comment: New changeset 863154c9292e70c5a8a1a3f22ef4ee42e2304281 by Irit Katriel in branch 'main': bpo-31299: make it possible to filter out frames from tracebacks (GH-28067) https://github.com/python/cpython/commit/863154c9292e70c5a8a1a3f22ef4ee42e2304281 --

[issue31299] Add "ignore_modules" option to TracebackException.format()

2021-08-30 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +26511 pull_request: https://github.com/python/cpython/pull/28067 ___ Python tracker ___

[issue31299] Add "ignore_modules" option to TracebackException.format()

2021-06-17 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +25358 pull_request: https://github.com/python/cpython/pull/26772 ___ Python tracker ___

[issue31299] Add "ignore_modules" option to TracebackException.format()

2020-12-07 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31299] Add "ignore_modules" option to TracebackException.format()

2020-12-07 Thread Irit Katriel
Irit Katriel added the comment: In issue42247 the unit test framework uses limit as a hack to remove its own frame, and then the traceback module applies the limit to the chained exception as well. If the filter suggested here existed, unit test could use that instead of limit. --

[issue31299] Add "ignore_modules" option to TracebackException.format()

2019-01-26 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- nosy: -vaultah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31299] Add "ignore_modules" option to TracebackException.format()

2019-01-26 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -11522 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31299] Add "ignore_modules" option to TracebackException.format()

2019-01-26 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -5065 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31299] Add "ignore_modules" option to TracebackException.format()

2019-01-26 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: +11522 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31299] Add "ignore_modules" option to TracebackException.format()

2019-01-26 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: It would seem no one is actually interested in this proposed enhancement. I'm closing my PR, since I'm not interested in resolving the file conflict. I'll probably submit a traceback-mutating patch to the issue 16217. This issue can be closed. --

[issue31299] Add "ignore_modules" option to TracebackException.format()

2018-10-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : Removed file: https://bugs.python.org/file47284/traceback_filter.patch ___ Python tracker ___ ___

[issue31299] Add "ignore_modules" option to TracebackException.format()

2018-10-20 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I asked for some input on this issue in January (https://mail.python.org/pipermail/python-dev/2018-January/151590.html). Since then an important PR was merged (https://github.com/python/cpython/pull/4793), however it mutates the traceback object. Should

[issue31299] Add "ignore_modules" option to TracebackException.format()

2018-01-16 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: +5065 stage: needs patch -> patch review ___ Python tracker ___

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-11-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have prepared a patch (attached) with a possible implementation of the C function that can filter traceback objects modifying the traceback chain. I can make a PR if the patch looks good enough to start iterating over it. In case

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-11-21 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -3274 ___ Python tracker ___ ___

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-11-09 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I only recently realized that trace.Trace accepts two similar arguments, namely ignoremods and ignoredirs. Should we try to make the API and implementation of the functionality proposed here conform to that of trace.Trace's ignoremods?

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-10-24 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Ping. (this issue needs a decision on ignore_modules vs filter callback, and/or patch review) -- ___ Python tracker

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-09-24 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Yes, a public built-in facility to modify a traceback would certainly be useful, although there should be a standard way to "hide" unwanted frames without mutating the traceback, too, and the traceback module seems a perfect place to add it. I have no

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-09-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think a more general facility to strip unwanted frames from traceback objects would be useful for more people (including importlib, I think). i.e. actually mutate the traceback object, not remove the unwanted frames when printing (since it only works if

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-08-29 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : -- pull_requests: +3274 ___ Python tracker ___ ___

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-08-29 Thread Nick Coghlan
New submission from Nick Coghlan: This is a proposed traceback module enhancement deriving from the "python -m" traceback verbosity discussion in issue 16217. Specifically, I'm thinking a good way of cleaning up those tracebacks would be to use `TracebackException.format()` to get the