modeling python with UML

Alan Gauld alan.gauld at
Mon Feb 23 23:38:13 CET 2004

On Mon, 23 Feb 2004 11:32:30 +0100, Uwe Mayer <merkosh at>
> Packages would be moduled as UML packages i presume.

Could be, or as components since they are physical deployable

> If your module contains only functions you can model them as static class
> methods, either by writing a dummy class that takes them up or by
> representing the file as a class.

Yes, thats one approach, or they could be an inteface to your

> However, if you module contains several classes - what do you do then?

UML packages are logical containers that can contain any other
UML item (classes, usecases, components, other packages...). Thus
a package can contain several classes. What exactly do you
perceive to be the problem?

Alan G.

Author of the Learn to Program website

More information about the Python-list mailing list