Lines Matching defs:Doc
96 """Get the doc string or comments for an object."""
101 def splitdoc(doc):
102 """Split a doc string into a synopsis line (if any) and the rest."""
103 lines = split(strip(doc), '\n')
363 class Doc:
461 class HTMLDoc(Doc):
709 doc = self.markup(getdoc(object), self.preformat, fdict, cdict)
710 doc = doc and '<tt>%s</tt>' % doc
711 result = result + '<p>%s</p>\n' % doc
824 doc = getattr(value, "__doc__", None)
826 doc = None
827 if doc is None:
830 doc = self.markup(getdoc(value), self.preformat,
832 doc = '<dd><tt>%s</tt>' % doc
833 push('<dl><dt>%s%s</dl>\n' % (base, doc))
905 doc = self.markup(getdoc(object), self.preformat, funcs, classes, mdict)
906 doc = doc and '<tt>%s<br> </tt>' % doc
908 return self.section(title, '#000000', '#ffc8d8', contents, 3, doc)
963 doc = self.markup(
965 doc = doc and '<dd><tt>%s</tt></dd>' % doc
966 return '<dl><dt>%s</dt>%s</dl>\n' % (decl, doc)
975 doc = self.markup(getdoc(value), self.preformat)
976 push('<dd><tt>%s</tt></dd>\n' % doc)
1040 class TextDoc(Doc):
1199 doc = getdoc(object)
1200 contents = doc and [doc + '\n'] or []
1255 doc = getdoc(value)
1257 doc = None
1259 name, mod, maxlen=70, doc=doc) + '\n')
1346 doc = getdoc(object) or ''
1347 return decl + '\n' + (doc and rstrip(self.indent(doc)) + '\n')
1356 doc = getdoc(value) or ''
1357 if doc:
1358 push(self.indent(doc))
1370 def docother(self, object, name=None, mod=None, parent=None, maxlen=None, doc=None):
1378 if doc is not None:
1379 line += '\n' + self.indent(str(doc))
1592 def doc(thing, title='Python Library Documentation: %s', forceload=0):
1622 # section in the .rst file under Doc/ and an index into the dictionary
1626 # list of needed labels in Doc/tools/pyspecific.py and
1629 # in Doc/ and copying the output file into the Lib/ directory.
1856 elif request: doc(request, 'Help on %s:')
1858 else: doc(request, 'Help on %s:')
1932 doc = pydoc_data.topics.topics[label]
1936 pager(strip(doc) + '\n')