Menu

#100 doctest not displayed when alone after the first line

open
5
2009-02-24
2009-02-24
Grahack
No

When my docstring is:

"""First line to briefly introduce the object.

>>> import os
>>> print os
<module 'os' from '/usr/lib/python2.5/os.pyc'>

"""

With no text after the first line but the doctest, Epydoc doesn't link to a detailed description at the end of the page to see the doctest.

I don't know if it's intented. The only workaround to be able to see the doctest in the gnerated doc was to force me to invent a sentence to add after or before the doctest, in addition to the very first line.

Thanks.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.