[New-bugs-announce] [issue31299] Add "ignore_modules" option to TracebackException.format()

Nick Coghlan report at bugs.python.org
Tue Aug 29 03:45:45 EDT 2017


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 formatted exception output, but designate particular modules to be *skipped* during the iteration (specifically `runpy`, `_frozen_importlib`, `importlib`).

I'm filing this as a separate issue so the discussion of the public API for the capability in the traceback module can be separated from the discussion of applying that API in runpy.

----------
components: Library (Lib)
messages: 300974
nosy: ncoghlan, rbcollins, vaultah
priority: normal
severity: normal
stage: needs patch
status: open
title: Add "ignore_modules" option to TracebackException.format()
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31299>
_______________________________________


More information about the New-bugs-announce mailing list