Jelle Zijlstra email@example.com added the comment:
How people can get Iterable[FrameSummary] as an input and pass it to format_list()?
If I want to format a traceback, but omit traceback lines that refer to a particular module (for example, code for a coroutine runner), I could write `format_list(filter(lambda fs: 'asyncio' not in fs.filename, extract_stack())`.
I would also favor broadening the documented argument type for `format_list()` to say it accepts an iterable of FrameSummaries. No code change is necessary and it makes the code more flexible.
---------- nosy: +Jelle Zijlstra