A question of style
graham.matthews@maths.anu.edu.au
3 Feb 1995 00:17:58 GMT
I have started to write some fairly large Python applications, and
wondered if anyone had some advice on organising large code sections.
The usual way I organise my code is to have a module which contains
a class and some related functions. My question concerns how much
functionality to put into the class, and how much to put into the
associated module. For example do you put all the methods related to
some class in the class, or only the init and destroy methods, or some
in the class, some in the module. Are there any good guidelines as to
when a method should be in a class, rather than a module ...
All help greatly appreciated.
graham
--
Je suis pour le communisme
Je suis pour le socialisme
Je suis pour le capitalisme
Parce que je suis opportuniste