Organizing Python Code
Aahz Maruch
aahz at panix.com
Mon Oct 2 01:02:58 EDT 2000
In article <39D7F3DE.D4104FE7 at ix.netcom.com>,
Thomas Gagne <tgagne at efinnet.com> wrote:
>
>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 suggest you look in the Python Lib directory to see how various
modules are set up. There are no hard-and-fast rules.
--
--- Aahz (Copyright 2000 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
There may or may not be a smiley above. --Aahz
More information about the Python-list
mailing list