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

Method proxyval

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

Source from the content-addressed store, hash-verified

1430 return field_ob_item[i]
1431
1432 def proxyval(self, visited):
1433 # Guard against infinite loops:
1434 if self.as_address() in visited:
1435 return ProxyAlreadyVisited('(...)')
1436 visited.add(self.as_address())
1437
1438 result = tuple(PyObjectPtr.from_pyobject_ptr(self[i]).proxyval(visited)
1439 for i in safe_range(int_from_int(self.field('ob_size'))))
1440 return result
1441
1442 def write_repr(self, out, visited):
1443 # 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