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

Method proxyval

Tools/gdb/libpython.py:879–887  ·  view source on GitHub ↗
(self, visited)

Source from the content-addressed store, hash-verified

877 return field_ob_item[i]
878
879 def proxyval(self, visited):
880 # Guard against infinite loops:
881 if self.as_address() in visited:
882 return ProxyAlreadyVisited('[...]')
883 visited.add(self.as_address())
884
885 result = [PyObjectPtr.from_pyobject_ptr(self[i]).proxyval(visited)
886 for i in safe_range(int_from_int(self.field('ob_size')))]
887 return result
888
889 def write_repr(self, out, visited):
890 # Guard against infinite loops:

Callers

nothing calls this directly

Calls 8

ProxyAlreadyVisitedClass · 0.85
safe_rangeFunction · 0.85
int_from_intFunction · 0.85
from_pyobject_ptrMethod · 0.80
fieldMethod · 0.80
as_addressMethod · 0.45
addMethod · 0.45
proxyvalMethod · 0.45

Tested by

no test coverage detected