'Produce text documentation for a data object.'

def docother(self, object, name=None, mod=None, parent=None, maxlen=None, doc=None):

    repr = self.repr(object)
    if maxlen:
        line = (((name and (name + '    =    ')) or '') + repr)
        chop = (maxlen - len(line))
        if (chop < 0):
            repr = (repr[:chop] + '...')
    line = (((name and (self.bold(name) + '    =    ')) or '') + repr)
    if (doc is not None):
        line += ('\n' + self.indent(str(doc)))
    return line
