Message326254
> 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. |
|
Date |
User |
Action |
Args |
2018-09-24 15:41:06 | JelleZijlstra | set | recipients:
+ JelleZijlstra, srittau, docs@python, berker.peksag, Nathaniel Manista |
2018-09-24 15:41:06 | JelleZijlstra | set | messageid: <1537803666.03.0.956365154283.issue34648@psf.upfronthosting.co.za> |
2018-09-24 15:41:06 | JelleZijlstra | link | issue34648 messages |
2018-09-24 15:41:05 | JelleZijlstra | create | |
|