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 objections to the `filter` argument, though filtering out frames 
based on modules to me feels by far more common a task than anything else 
`filter` would be capable of.

I can update the PR if there's a consensus that `filter` is favored over 
`ignore_modules`.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31299>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to