MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / print_stack

Method print_stack

tools/python-3.11.9-amd64/Lib/asyncio/tasks.py:187–196  ·  view source on GitHub ↗

Print the stack or traceback for this task's coroutine. This produces output similar to that of the traceback module, for the frames retrieved by get_stack(). The limit argument is passed to get_stack(). The file argument is an I/O stream to which the output i

(self, *, limit=None, file=None)

Source from the content-addressed store, hash-verified

185 return base_tasks._task_get_stack(self, limit)
186
187 def print_stack(self, *, limit=None, file=None):
188 """Print the stack or traceback for this task's coroutine.
189
190 This produces output similar to that of the traceback module,
191 for the frames retrieved by get_stack(). The limit argument
192 is passed to get_stack(). The file argument is an I/O stream
193 to which the output is written; by default output is written
194 to sys.stderr.
195 """
196 return base_tasks._task_print_stack(self, limit, file)
197
198 def cancel(self, msg=None):
199 """Request that this task cancel itself.

Callers 3

handleErrorMethod · 0.80
findCallerMethod · 0.80
pollmessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected