MCPcopy Index your code
hub / github.com/RustPython/RustPython / preloop

Method preloop

Lib/pdb.py:337–348  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

335
336 # Called before loop, handles display expressions
337 def preloop(self):
338 displaying = self.displaying.get(self.curframe)
339 if displaying:
340 for expr, oldvalue in displaying.items():
341 newvalue = self._getval_except(expr)
342 # check for identity first; this prevents custom __eq__ to
343 # be called at every loop, and also prevents instances whose
344 # fields are changed to be displayed
345 if newvalue is not oldvalue and newvalue != oldvalue:
346 displaying[expr] = newvalue
347 self.message('display %s: %r [old: %r]' %
348 (expr, newvalue, oldvalue))
349
350 def interaction(self, frame, traceback):
351 # Restore the previous signal handler at the Pdb prompt.

Callers

nothing calls this directly

Calls 4

_getval_exceptMethod · 0.95
messageMethod · 0.95
getMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected