]> granicus.if.org Git - python/commitdiff
Closes #22475: asyncio doc, fix Task.get_stack() doc
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 2 Dec 2014 16:57:04 +0000 (17:57 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 2 Dec 2014 16:57:04 +0000 (17:57 +0100)
Doc/library/asyncio-task.rst
Lib/asyncio/tasks.py

index 0d94cb8bdbafacbd7270638fe81f6466d7ba732c..3008c86709dfa379e7e82a0b286590e450a5cd44 100644 (file)
@@ -413,7 +413,7 @@ Task
 
       Return the list of stack frames for this task's coroutine.
 
-      If the coroutine is active, this returns the stack where it is suspended.
+      If the coroutine is not done, this returns the stack where it is suspended.
       If the coroutine has completed successfully or was cancelled, this
       returns an empty list.  If the coroutine was terminated by an exception,
       this returns the list of traceback frames.
index e0738021e03c78282e2b32fa6eaef78896278b15..a2128c5545d2abc720a525b7b07c33b1fc239d01 100644 (file)
@@ -109,7 +109,7 @@ class Task(futures.Future):
     def get_stack(self, *, limit=None):
         """Return the list of stack frames for this task's coroutine.
 
-        If the coroutine is active, this returns the stack where it is
+        If the coroutine is not done, this returns the stack where it is
         suspended.  If the coroutine has completed successfully or was
         cancelled, this returns an empty list.  If the coroutine was
         terminated by an exception, this returns the list of traceback