The pydoc documentation of some Python modules (like math
and sys
) has a "MODULE DOCS" section that contains a useful link to some HTML documentation:
Help on module math:
NAME
math
FILE
/sw/lib/python2.6/lib-dynload/math.so
MODULE DOCS
/sw/share/doc/python26/html/math.html
How can such a section be included in your own modules?
More generally, is there a place where the variables recognized by pydoc are documented?
I was not able to find this in the source because the math
module is a shared library, on my machine (OS X), and the sys
module is built in Python… Any help would be much appreciated!