[Tutor] Question about Classes

mlong at datalong.com mlong at datalong.com
Tue Nov 25 16:55:47 EST 2003


> Finding the right balance between planning ahead and staying
> simple and flexible is something you will have to learn over
> time.
>
> A great thing with Python is that it's so flexible. I'd put
> the Email(s) class with the Contact class in a shared module.
> You can import that in some other program and just use the
> Email class. If it grows, and you feel it should have a module
> on it's own, it's time to refactor your code and break it out.

Your explanation is very good. You have helped me to better understand how to use
classes and modules.

Thank you,
Mike



More information about the Tutor mailing list