Ben Finney <[email protected]> writes:

> Ideally what I want is to be able to write:
>
>     import textwrap
>
>     (summary, description) = textwrap.pep257_parse(foo.__doc__)

The function I want is ‘pydoc.splitdoc’. It's not documented in the
library documentation <URL:http://docs.python.org/library/pydoc.html>
but it returns a tuple of (synopsis, description) from a PEP 257
docstring.

-- 
 \        “Don't fight forces, use them.” —Richard Buckminster Fuller, |
  `\                                                   _Shelter_, 1932 |
_o__)                                                                  |
Ben Finney

_______________________________________________
melbourne-pug mailing list
[email protected]
http://mail.python.org/mailman/listinfo/melbourne-pug

Reply via email to