Organizing Python Code

Alex the_brain at mit.edu
Mon Oct 2 06:02:28 CEST 2000


> I'm trying to do a project with Python and I'm not convinced I've set
> things up properly.  In writing C code I've grown accustomed to
> creating separate files for each function.  This doesn't seem to
> really be the right thing to do in Python since the top of each would
> include a bunch of "import" or "from" statements.  On the other
> extreme, I don't like having really big files either.

I've never used it, but it seems as if the package system would allow
you to have small files without burying you in import's.

Alex.

-- 
Speak softly but carry a big carrot.




More information about the Python-list mailing list