Home | History | Annotate | Download | only in Lib

Lines Matching defs:Doc

82     """Get the doc string or comments for an object."""

86 def splitdoc(doc):
87 """Split a doc string into a synopsis line (if any) and the rest."""
88 lines = split(strip(doc), '\n')
318 class Doc:
416 class HTMLDoc(Doc):
658 doc = self.markup(getdoc(object), self.preformat, fdict, cdict)
659 doc = doc and '<tt>%s</tt>' % doc
660 result = result + '<p>%s</p>\n' % doc
766 doc = getattr(value, "__doc__", None)
768 doc = None
769 if doc is None:
772 doc = self.markup(getdoc(value), self.preformat,
774 doc = '<dd><tt>%s</tt>' % doc
775 push('<dl><dt>%s%s</dl>\n' % (base, doc))
842 doc = self.markup(getdoc(object), self.preformat, funcs, classes, mdict)
843 doc = doc and '<tt>%s<br>&nbsp;</tt>' % doc
845 return self.section(title, '#000000', '#ffc8d8', contents, 3, doc)
900 doc = self.markup(
902 doc = doc and '<dd><tt>%s</tt></dd>' % doc
903 return '<dl><dt>%s</dt>%s</dl>\n' % (decl, doc)
912 doc = self.markup(getdoc(value), self.preformat)
913 push('<dd><tt>%s</tt></dd>\n' % doc)
977 class TextDoc(Doc):
1136 doc = getdoc(object)
1137 contents = doc and [doc + '\n'] or []
1185 doc = getdoc(value)
1187 doc = None
1189 name, mod, maxlen=70, doc=doc) + '\n')
1276 doc = getdoc(object) or ''
1277 return decl + '\n' + (doc and rstrip(self.indent(doc)) + '\n')
1286 doc = getdoc(value) or ''
1287 if doc:
1288 push(self.indent(doc))
1300 def docother(self, object, name=None, mod=None, parent=None, maxlen=None, doc=None):
1308 if doc is not None:
1309 line += '\n' + self.indent(str(doc))
1508 def doc(thing, title='Python Library Documentation: %s', forceload=0):
1538 # section in the .rst file under Doc/ and an index into the dictionary
1542 # list of needed labels in Doc/tools/sphinxext/pyspecific.py and
1545 # in Doc/ and copying the output file into the Lib/ directory.
1772 elif request: doc(request, 'Help on %s:')
1774 else: doc(request, 'Help on %s:')
1848 doc = pydoc_data.topics.topics[label]
1852 pager(strip(doc) + '\n')