This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author JelleZijlstra
Recipients JelleZijlstra, Nathaniel Manista, berker.peksag, docs@python, srittau
Date 2018-09-24.15:41:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537803666.03.0.956365154283.issue34648@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2018-09-24 15:41:06JelleZijlstrasetrecipients: + JelleZijlstra, srittau, docs@python, berker.peksag, Nathaniel Manista
2018-09-24 15:41:06JelleZijlstrasetmessageid: <1537803666.03.0.956365154283.issue34648@psf.upfronthosting.co.za>
2018-09-24 15:41:06JelleZijlstralinkissue34648 messages
2018-09-24 15:41:05JelleZijlstracreate