Unification of Methods and Functions

Mark Hahn mark at prothon.org
Tue May 25 00:06:33 EDT 2004


Greg Ewing wrote:

> By the way, when I start writing a new Python program,
> often I'm tempted to put several classes in a module, only
> to regret it later as those classes grow and I end up
> with a huge source file that's hard to navigate around
> in. I'm coming to the view that it may be better to
> plan on one-class-per-module from the beginning.

I'm toying with the idea of supporting more than one module per file.  That
would allow you to start with one module per class when classes are small
and fit many per file.  Then they could expand to one class-module per file.





More information about the Python-list mailing list