[code-quality] Parsing Docstrings?
Jarrad Hope
me at jarradhope.com
Sun May 3 07:30:52 CEST 2015
hurr .. theres a .doc attribute of the node which has it all. sorry :)
On Sun, May 3, 2015 at 12:15 PM, Ben Finney <ben+python at benfinney.id.au> wrote:
> 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
>
> _______________________________________________
> code-quality mailing list
> code-quality at python.org
> https://mail.python.org/mailman/listinfo/code-quality
More information about the code-quality
mailing list