(self, out, visited)
| 887 | return result |
| 888 | |
| 889 | def write_repr(self, out, visited): |
| 890 | # Guard against infinite loops: |
| 891 | if self.as_address() in visited: |
| 892 | out.write('[...]') |
| 893 | return |
| 894 | visited.add(self.as_address()) |
| 895 | |
| 896 | out.write('[') |
| 897 | for i in safe_range(int_from_int(self.field('ob_size'))): |
| 898 | if i > 0: |
| 899 | out.write(', ') |
| 900 | element = PyObjectPtr.from_pyobject_ptr(self[i]) |
| 901 | element.write_repr(out, visited) |
| 902 | out.write(']') |
| 903 | |
| 904 | class PyLongObjectPtr(PyObjectPtr): |
| 905 | _typename = 'PyLongObject' |
nothing calls this directly
no test coverage detected