[issue39060] asyncio.Task.print_stack doesn't print the full stack

2020-05-18 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39060] asyncio.Task.print_stack doesn't print the full stack

2019-12-22 Thread Amit Itzkovitch
Amit Itzkovitch added the comment: Hi Terry, I guess the right place to update the Task.get_stack doc: https://docs.python.org/3/library/asyncio-task.html#asyncio.Task.get_stack I'm not sure I know the terminology enough to phrase it right, but I would add there something like: Note that

[issue39060] asyncio.Task.print_stack doesn't print the full stack

2019-12-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Amit, is there a simple doc change that would have made the result clearer? (before getting Andrew's response?) -- nosy: +terry.reedy versions: +Python 3.8, Python 3.9 ___ Python tracker

[issue39060] asyncio.Task.print_stack doesn't print the full stack

2019-12-16 Thread Amit Itzkovitch
Amit Itzkovitch added the comment: In is mainly confusing because I expected this function to behave like "traceback.print_stack()", which prints the stack including all the awaits that lead to it. -- ___ Python tracker

[issue39060] asyncio.Task.print_stack doesn't print the full stack

2019-12-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: Technically the output is correct: a stack for async function call doesn't contain the outer async function that is used for awaiting. Agree, it may sound confusing, but `await f()` is not the same as just `f()`. Perhaps we can provide *alternative* API for

[issue39060] asyncio.Task.print_stack doesn't print the full stack

2019-12-16 Thread Amit Itzkovitch
New submission from Amit Itzkovitch : Hi! I think I found some issue in the "print_stack()" function of asyncio.Task. When I try to print the stack of some task, I only see the first few lines of the stack. Attached an example file, that contains a recursive function that after 10 calls