[Tutor] Question about Classes

mlong at datalong.com mlong at datalong.com
Tue Nov 25 15:36:30 EST 2003


> But you are actually mentioning a well known pattern. It's been analyzed
> by Marting Fowler in his book "Analysis Patterns".
>
> You have to think about your model in terms of "is a kind of", "has"
> and "contains" etc, and design you model based on that. I'll dodge a
> bit by saying that this is not really a Python issues... ;)

So if the goal is to maximize code reuse, would the correct solution require that
the Emails class be placed in another module that can then be imported whenever the
Emails functionality is required or is there a better way to do this?

Thanks,
Mike



More information about the Tutor mailing list