[code-quality] Parsing Docstrings?
Ben Finney
ben+python at benfinney.id.au
Sun May 3 07:15:13 CEST 2015
Jarrad Hope <me at jarradhope.com> writes:
> Any ideas how can I get the docstring from a module or function?
Once the code object is defined, its ‘__doc__’ attribute contains the
docstring <URL:https://docs.python.org/3/glossary.html#term-docstring>.
What happens when you use that?
--
\ “The way to build large Python applications is to componentize |
`\ and loosely-couple the hell out of everything.” —Aahz |
_o__) |
Ben Finney
More information about the code-quality
mailing list