class_docstr: A coroutine wrapped in a Future.
docstr: Return the list of stack frames for this task's coroutine.
  
  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.
  
  The frames are always ordered from oldest to newest.
  
  The optional limit gives the maximum number of frames to
  return; by default all available frames are returned.  Its
  meaning differs depending on whether a stack or a traceback is
  returned: the newest frames of a stack are returned, but the
  oldest frames of a traceback are returned.  (This matches the
  behavior of the traceback module.)
  
  For reasons beyond our control, only one stack frame is
  returned for a suspended coroutine.
docstr_tok: ["Return","the","list","of","stack","frames","for","this","task","'s","coroutine",".","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",".","The","frames","are","always","ordered","from","oldest","to","newest",".","The","optional","limit","gives","the","maximum","number","of","frames","to","return",";","by","default","all","available","frames","are","returned",".","Its","meaning","differs","depending","on","whether","a","stack","or","a","traceback","is","returned",":","the","newest","frames","of","a","stack","are","returned",",","but","the","oldest","frames","of","a","traceback","are","returned",".","(","This","matches","the","behavior","of","the","traceback","module",".",")","For","reasons","beyond","our","control",",","only","one","stack","frame","is","returned","for","a","suspended","coroutine","."]
code: def get_stack(self, *, limit=None):
      """Return the list of stack frames for this task's coroutine.
  
      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.
  
      The frames are always ordered from oldest to newest.
  
      The optional limit gives the maximum number of frames to
      return; by default all available frames are returned.  Its
      meaning differs depending on whether a stack or a traceback is
      returned: the newest frames of a stack are returned, but the
      oldest frames of a traceback are returned.  (This matches the
      behavior of the traceback module.)
  
      For reasons beyond our control, only one stack frame is
      returned for a suspended coroutine.
      """
      return base_tasks._task_get_stack(self, limit)
  
imports: import concurrent.futures
  import contextvars
  import functools
  import inspect
  import itertools
  import types
  import warnings
  import weakref
  from types import GenericAlias
  from .None import base_tasks
  from .None import coroutines
  from .None import events
  from .None import exceptions
  from .None import futures
  from .coroutines import _is_coroutine
label_desc: Use image node_id 9 for calling the Task obj's underlying member method code with example usage: obj.get_stack() and returns: base_tasks