MCPcopy Index your code
hub / github.com/python/cpython / print_stack

Method print_stack

Lib/asyncio/tasks.py:172–181  ·  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 is wri

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

Source from the content-addressed store, hash-verified

170 return base_tasks._task_get_stack(self, limit)
171
172 def print_stack(self, *, limit=None, file=None):
173 """Print the stack or traceback for this task's coroutine.
174
175 This produces output similar to that of the traceback module,
176 for the frames retrieved by get_stack(). The limit argument
177 is passed to get_stack(). The file argument is an I/O stream
178 to which the output is written; by default output is written
179 to sys.stderr.
180 """
181 return base_tasks._task_print_stack(self, limit, file)
182
183 def cancel(self, msg=None):
184 """Request that this task cancel itself.

Callers 6

handleErrorMethod · 0.80
findCallerMethod · 0.80
test_stack_formatMethod · 0.80
prnMethod · 0.80
barMethod · 0.80
pollmessageMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_stack_formatMethod · 0.64
prnMethod · 0.64
barMethod · 0.64