Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d87de83

Browse files
committed
Closes #22475: asyncio doc, fix Task.get_stack() doc
1 parent 039f703 commit d87de83

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/asyncio-task.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ Task
413413

414414
Return the list of stack frames for this task's coroutine.
415415

416-
If the coroutine is active, this returns the stack where it is suspended.
416+
If the coroutine is not done, this returns the stack where it is suspended.
417417
If the coroutine has completed successfully or was cancelled, this
418418
returns an empty list. If the coroutine was terminated by an exception,
419419
this returns the list of traceback frames.

Lib/asyncio/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def _repr_info(self):
109109
def get_stack(self, *, limit=None):
110110
"""Return the list of stack frames for this task's coroutine.
111111
112-
If the coroutine is active, this returns the stack where it is
112+
If the coroutine is not done, this returns the stack where it is
113113
suspended. If the coroutine has completed successfully or was
114114
cancelled, this returns an empty list. If the coroutine was
115115
terminated by an exception, this returns the list of traceback

0 commit comments

Comments
 (0)