[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

[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 <https://bu

[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