combine doxygen and doc-strings?

G

Gabriel Zachmann

Is there a way to combine doxygen comments, like this one


## Documentation for a function.
# @var a - variable
# More details.

def func( a ):
pass


with the doc strings, like this one


def func( a ):
""" Documentation for a function.
More details.
"""
pass


?
Obviously, one would like to write the documentaion only once.

Best regards,
Gabriel.

--
/-----------------------------------------------------------------------\
| Any intelligent fool can make things bigger, more complex, |
| or more violent. It takes a touch of genius - and a lot of courage - |
| to move in the opposite direction. (Einstein) |
\-----------------------------------------------------------------------/
 
H

Henk van Asselt

Gabriel said:
Is there a way to combine doxygen comments, like this one


## Documentation for a function.
# @var a - variable
# More details.

def func( a ):
pass


with the doc strings, like this one


def func( a ):
""" Documentation for a function.
More details.
"""
pass


?
Obviously, one would like to write the documentaion only once.

Best regards,
Gabriel.

Gabriel,

Although it is not documented yet, doxygen understands the following:

def func( a ):
"""! @brief Documentation for a function.
@var a This is a variable
@return Nothing

More details.
"""

I found this information in a mailing list (of which I don't know it's
name anymore)

Good luck, Henk
 
D

Diez B. Roggisch

Gabriel said:
Is there a way to combine doxygen comments, like this one

If you are not tied to doxygen, you might consider epydoc - it uses the
docstrings, and restructured text which is friendly to the eye.

Regards,

Diez
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top