GNOME Bugzilla – Bug 363828
python: module docstrings aren't handled correctly
Last modified: 2008-02-10 13:03:18 UTC
Docstrings found at the top of a source file should be used as the documentation for that module, but they're not. Run the attached testcase and you'll see the brief and detailed documetation for MyModule is missing.
Created attachment 75116 [details] test case
Created attachment 75117 [details] [review] Proposed patch I've run this on a large python project and it appears to work correctly, but I don't quite understand the intent behind the way some of code pyscanner.l is structured, so someone who does should make sure I haven't done something horribly wrong.
I confirm that 1.5.1 exhibits the behavior described in this bug.
The patch I proposed above introduces a new bug, where documentation for class and module variables are ignored. I'm working on a better patch.
Created attachment 75879 [details] [review] A better patch Doesn't have the bug the previous patch had.
I don't think the fix proposed in the patch is the right way to do it. I'll include a less intrusive fix in the next subversion update.
This bug was marked assigned, which means to should be fixed in version 1.5.5 of doxygen. Please verify if this is indeed the case, and if not, reopen the bug and provide additional information if possible.