Home | History | Annotate | Download | only in python2.7

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
773 doc = getattr(value, "__doc__", None)
775 doc = None
776 if doc is None:
779 doc = self.markup(getdoc(value), self.preformat,
781 doc = '<dd><tt>%s</tt>' % doc
782 push('<dl><dt>%s%s</dl>\n' % (base, doc))
854 doc = self.markup(getdoc(object), self.preformat, funcs, classes, mdict)
855 doc = doc and '<tt>%s<br>&nbsp;</tt>' % doc
857 return self.section(title, '#000000', '#ffc8d8', contents, 3, doc)
912 doc = self.markup(
914 doc = doc and '<dd><tt>%s</tt></dd>' % doc
915 return '<dl><dt>%s</dt>%s</dl>\n' % (decl, doc)
924 doc = self.markup(getdoc(value), self.preformat)
925 push('<dd><tt>%s</tt></dd>\n' % doc)
989 class TextDoc(Doc):
1148 doc = getdoc(object)
1149 contents = doc and [doc + '\n'] or []
1204 doc = getdoc(value)
1206 doc = None
1208 name, mod, maxlen=70, doc=doc) + '\n')
1295 doc = getdoc(object) or ''
1296 return decl + '\n' + (doc and rstrip(self.indent(doc)) + '\n')
1305 doc = getdoc(value) or ''
1306 if doc:
1307 push(self.indent(doc))
1319 def docother(self, object, name=None, mod=None, parent=None, maxlen=None, doc=None):
1327 if doc is not None:
1328 line += '\n' + self.indent(str(doc))
1529 def doc(thing, title='Python Library Documentation: %s', forceload=0):
1559 # section in the .rst file under Doc/ and an index into the dictionary
1563 # list of needed labels in Doc/tools/sphinxext/pyspecific.py and
1566 # in Doc/ and copying the output file into the Lib/ directory.
1793 elif request: doc(request, 'Help on %s:')
1795 else: doc(request, 'Help on %s:')
1869 doc = pydoc_data.topics.topics[label]
1873 pager(strip(doc) + '\n')