[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2019-05-15 Thread Aaron Hall
Change by Aaron Hall : -- nosy: +Aaron Hall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-24 Thread Jelle Zijlstra
Jelle Zijlstra 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

[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-24 Thread Nathaniel Manista
Nathaniel Manista added the comment: > The question that needs to be answered here is "why we should support > Iterable[FrameSummary]?" and you're one the one who needs to answer > it Okay, here are a few reasons: 1) A function that requires that an input be a List invites the question “why

[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: > Why not support Iterable[FrameSummary]? The question that needs to be answered here is "why we should support Iterable[FrameSummary]?" and you're one the one who needs to answer it instead of saying our design decisions were "absurd" and "not wise", without

[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-20 Thread Nathaniel Manista
Nathaniel Manista added the comment: > In 3.4, format_list() was documented to accept return values of extract_tb() > > and extract_stack() functions and they both were returned lists: > > def extract_tb(tb, limit=None): > return list(_extract_tb_iter(tb, limit=limit)) > >

[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-13 Thread Berker Peksag
Berker Peksag added the comment: > 1) I know it has the name "format_list", but is it really intended to require > a > list? Why not a sequence, or a collection, or an iterable? I would think it > would > be fine to pass an iterable to traceback.format_list. Is it fine? In 3.4,

[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-12 Thread Sebastian Rittau
Change by Sebastian Rittau : -- nosy: +srittau ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-12 Thread Nathaniel Manista
Nathaniel Manista added the comment: ... and while we're here, how about StackSummary.from_list's "a_list" parameter as well: 3) Can it be Iterable? It looks like it can be Iterable? Is it fine for it to be Iterable? 4) Should the component type of "a_list" be FrameSummary? Is the support