Pydoc not seeing docstrings?
问题 Obviously I am missing something serious here. Here is my test program: """ Doc and nothing but doc """ class TestMe(object): """ class documentation goes here """ def testFunc(self): """ FunctionDoc Goes here """ print "Hello world" if __name__ =="__main__": t=TestMe() t.testFunc() I run it and it prints "Hello world", natch. But pydoc.py test.py gives this: no Python documentation found for 'test.py' Obviously I am missing something simple here, but what? --edit-- Per Vishnu's suggestion I