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)
| 2684 | Pdb().run(statement, globals, locals) |
| 2685 | |
| 2686 | def 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 | |
| 2695 | def runctx(statement, globals, locals): |
| 2696 | # B/W compatibility |