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

Method write_repr

Tools/gdb/libpython.py:307–315  ·  view source on GitHub ↗

Write a string representation of the value scraped from the inferior process to "out", a file-like object.

(self, out, visited)

Source from the content-addressed store, hash-verified

305 int(self._gdbval))
306
307 def write_repr(self, out, visited):
308 '''
309 Write a string representation of the value scraped from the inferior
310 process to "out", a file-like object.
311 '''
312 # Default implementation: generate a proxy value and write its repr
313 # However, this could involve a lot of work for complicated objects,
314 # so for derived classes we specialize this
315 return out.write(repr(self.proxyval(visited)))
316
317 @classmethod
318 def subclass_from_type(cls, t):

Callers 1

get_truncated_reprMethod · 0.95

Calls 2

proxyvalMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected