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 you're the one doing the printing).
(note mutating a traceback object is very easy in C, it's just not possible in pure Python, except perhaps with nasty ctypes hacks) Also, the `ignore_modules` would be more powerful as a generic `filter` callback, I think. ---------- nosy: +brett.cannon, pitrou _______________________________________ 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