docs: def _write_instance_repr(out, visited, name, pyop_attrdict, address):
      '''Shared code for use by old-style and new-style classes:
      write a representation to file-like object "out"'''
      out.write('<')
      out.write(name)
  
      # Write dictionary of instance attributes:
      if isinstance(pyop_attrdict, PyDictObjectPtr):
          out.write('(')
          first = True
          for pyop_arg, pyop_val in pyop_attrdict.iteritems():
              if not first:
                  out.write(', ')
              first = False
              out.write(pyop_arg.proxyval(visited))
              out.write('=')
              pyop_val.write_repr(out, visited)
          out.write(')')
      out.write(' at remote 0x%x>' % address)