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

Function runcall

Lib/pdb.py:2699–2707  ·  view source on GitHub ↗

Call the function (a function or method object, not a string) with the given arguments. When runcall() returns, it returns whatever the function call returned. The debugger prompt appears as soon as the function is entered.

(*args, **kwds)

Source from the content-addressed store, hash-verified

2697 run(statement, globals, locals)
2698
2699def runcall(*args, **kwds):
2700 """Call the function (a function or method object, not a string)
2701 with the given arguments.
2702
2703 When runcall() returns, it returns whatever the function call
2704 returned. The debugger prompt appears as soon as the function is
2705 entered.
2706 """
2707 return Pdb().runcall(*args, **kwds)
2708
2709def set_trace(*, header=None, commands=None):
2710 """Enter the debugger at the calling stack frame.

Callers

nothing calls this directly

Calls 2

PdbClass · 0.85
runcallMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…