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

Class ProxyAlreadyVisited

Tools/gdb/libpython.py:411–422  ·  view source on GitHub ↗

Placeholder proxy to use when protecting against infinite recursion due to loops in the object graph. Analogous to the values emitted by the users of Py_ReprEnter and Py_ReprLeave

Source from the content-addressed store, hash-verified

409 _typename = 'PyVarObject'
410
411class ProxyAlreadyVisited(object):
412 '''
413 Placeholder proxy to use when protecting against infinite recursion due to
414 loops in the object graph.
415
416 Analogous to the values emitted by the users of Py_ReprEnter and Py_ReprLeave
417 '''
418 def __init__(self, rep):
419 self._rep = rep
420
421 def __repr__(self):
422 return self._rep
423
424
425def _write_instance_repr(out, visited, name, pyop_attrdict, address):

Callers 6

proxyvalMethod · 0.85
proxyvalMethod · 0.85
proxyvalMethod · 0.85
proxyvalMethod · 0.85
proxyvalMethod · 0.85
proxyvalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…