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
| 409 | _typename = 'PyVarObject' |
| 410 | |
| 411 | class 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 | |
| 425 | def _write_instance_repr(out, visited, name, pyop_attrdict, address): |