Organizing Python Code

Thomas Gagne tgagne at ix.netcom.com
Sun Oct 1 22:33:02 EDT 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.

What's everyone else doing?  What's idiomatic?

--
.tom






More information about the Python-list mailing list