def mini_desc(self, maxlen=50):
        def chomp(s):
            """interpret and left-align a docstring"""

            if 'subtensor' in s: 
                debug = 0
            else:
                debug = 0

            r = []
            leadspace = True
            for c in s:
                if leadspace and c in ' \n\t':
                    continue
                else:
                    leadspace = False

                if c == '\n':
                    if debug:
                        print >> sys.stderr, 'breaking'
                    break
                if c in '\t*`': 
                    c = ' ';
                r.append(c)

            if debug: 
                print >> sys.stderr, r

            return "".join(r)

        minmax = 5
        assert maxlen >= minmax
        if not self.docstring: 
            return "" #+ '(no doc)'
        elif len(self.docstring) < maxlen:
            return chomp(self.docstring)
        else:
            return "%s ..."% chomp(self.docstring[:maxlen-minmax])
Return a short description of the op
dataset/ETHPy150Open RDFLib/rdfextras/docs/scripts/gen_oplist.py/Entry.mini_desc