[Tutor] The python implementation of the "class relationship".

Jerry Zhang jerry.scofield at gmail.com
Thu Nov 10 10:23:28 CET 2011

As you know, there are several kinds of relationships between classes in
the UML -- dependency, association, aggregation, composition.
Q1. Is there any article or code example on its implementation in python?
Q2. More specific, in composition model, the container object may be
responsible for the handling of embedded objects' lifecycle. The common way
would be adding __del__ to the container class or something else?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111110/faedca2e/attachment.html>

More information about the Tutor mailing list