Jelle Zijlstra <jelle.zijls...@gmail.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

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

Reply via email to