Doxygen for Python: How to generate documentation

2019-08-29 09:39发布

I am documenting my Python code using Doxygen. The code makes use of Pythons capability of defining nested functions.

So I have documented them as if they were "normal" functions and set EXTRACT_ALL=YES.

But still, the nested functions cannot be found anywhere. Is there a way to make Doxygen do that?

(Doxygen version 1.8.6)

1条回答
Ridiculous、
2楼-- · 2019-08-29 10:09

there is no way to access nested functions so im sure it just doesnt document it

 def wrapper():
    def nested(a,b,c):
        return a+b+c
    return nested(1,2,3)

 #a user can call wrapper()
 print wrapper()
 #but there is no way to call nested
 print nested(7,7,7) #ERROR!!!

since a user cannot call it why would you document it?

(really this is just a comment that was too long to post as a comment)

查看更多
登录 后发表回答