In dia you can enter a comment for the class in the
class diagram as well as comments for each attribute
and operation (aka method).
It would be very useful, if dia2code included this
comment as the docstring of the class or method when
generating Python code. As attributes can have no
docstrings, the comment should be a comment in the
python source code itself immediately preceding the
attribute. This way, epydoc, for example, will pick up
the comment as the documentaion for the attribute.
The generated code will the look like this
class ClassName:
"""Comment for class ClassName.
Class ClassName """ # Attributes: # Comment fro attribute id. id = None # (int) # Operations def spamm(self): """Comment for operation spamm. returns None """