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

Function runeval

Lib/pdb.py:2686–2693  ·  view source on GitHub ↗

Evaluate the *expression* (given as a string or a code object) under debugger control. When runeval() returns, it returns the value of the expression. Otherwise this function is similar to run().

(expression, globals=None, locals=None)

Source from the content-addressed store, hash-verified

2684 Pdb().run(statement, globals, locals)
2685
2686def runeval(expression, globals=None, locals=None):
2687 """Evaluate the *expression* (given as a string or a code object)
2688 under debugger control.
2689
2690 When runeval() returns, it returns the value of the expression.
2691 Otherwise this function is similar to run().
2692 """
2693 return Pdb().runeval(expression, globals, locals)
2694
2695def runctx(statement, globals, locals):
2696 # B/W compatibility

Callers

nothing calls this directly

Calls 2

PdbClass · 0.85
runevalMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…