Evaluate 'code' in the frame. 'vars' are optional additional local variables. Returns the result of the evaluation.
(self, code, **vars)
| 162 | return self.code.fullsource.getstatement(self.lineno) |
| 163 | |
| 164 | def eval(self, code, **vars): |
| 165 | class="st">"""Evaluate &class="cm">#x27;code' in the frame. |
| 166 | |
| 167 | &class="cm">#x27;vars' are optional additional local variables. |
| 168 | |
| 169 | Returns the result of the evaluation. |
| 170 | class="st">""" |
| 171 | f_locals = self.f_locals.copy() |
| 172 | f_locals.update(vars) |
| 173 | return eval(code, self.f_globals, f_locals) |
| 174 | |
| 175 | def repr(self, object: object) -> str: |
| 176 | class="st">""class="st">"Return a &class="cm">#x27;safe' (non-recursive, one-line) string repr for 'object'."class="st">"" |