Ich würde mir gerne mit Pydoc eine HTML Datei meines Quellcodes erstellen lassen, also von den Kommentaren.
Die Datei sieht in etwa so aus:
Code: Alles auswählen
import sys, os, threading, signal, re
import logging
from os.path import dirname, join
class Test:
"""
Beschreibung
"""
#-------- Methods for modifying incomming source code ------------------------
def removeStaticDeclarations(self,source):
"""
Removes all "static" declarations by sorrounding it by comments.
@param source: Java source code.
@return: source without static methods.
"""
return re.sub('[^a-z,A-Z,0-9]\s?static\s+',' /*static*/ ',source);
[...]
Pydoc sagt aber immer dass keine Dokumentationen auffindbar sind...