pydoc, best practices, and Data class

  • Thread starter nathan_kent_bullock
  • Start date
N

nathan_kent_bullock

I have a python program that I am trying to generate documentation for.
But in one of my files I have a class called "Data", when pydoc gets to
this class it just barfs. Well more specifically it generates
documentation for only that one class in the file, it ignores the rest
of the classes, plus it doesn't create the standard header, Package
Contents section, Classes section, or anything else. Just wondering if
this is a known bug, I can get around it by naming the class something
else and then just changing all other references to this class.

Second question I have is is there somewhere that gives a good overview
of best practices for documenting code in python. I read something
about ReST (reStructuredText), is this supported by pydoc? Is it
commonly used? I found links to docutils and other things, is pydoc
still the standard method of creating python documentation?

Thanks,
Nathan Bullock
 
C

Colin J. Williams

I have a python program that I am trying to generate documentation for.
But in one of my files I have a class called "Data", when pydoc gets to
this class it just barfs. Well more specifically it generates
documentation for only that one class in the file, it ignores the rest
of the classes, plus it doesn't create the standard header, Package
Contents section, Classes section, or anything else. Just wondering if
this is a known bug, I can get around it by naming the class something
else and then just changing all other references to this class.

Second question I have is is there somewhere that gives a good overview
of best practices for documenting code in python. I read something
about ReST (reStructuredText), is this supported by pydoc? Is it
commonly used? I found links to docutils and other things, is pydoc
still the standard method of creating python documentation?

Thanks,
Nathan Bullock
epydoc is an alternative.

Colin W.
 

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,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top