include in python
Bartek Golenko
bartek at debian.caton.com.pl
Mon May 5 10:55:16 EDT 2003
Peter Hansen <peter at engcorp.com> wrote:
>> Well, the program I'm writting now is a prototype so it's going to be
>> rewritten anyway, but right now I just want a convinient way to split
>> the source code into smaller chunks.
>
> I cannot strongly enough recommend against doing this. If your prototype
> is going to be so large that you feel it's inconvenient to work with it
> in a single file, then it's certainly too large to manage in a single
> namespace.
Wrong assumption - you don't know how large source code must be to make
me feel uncomfortable ;)
> Save yourself a lot of hassle, listen to those who've gone there before,
> and learn to use "import" properly right now, and you'll save yourself
> a much greater inconvenience working with a hideously coupled design
> and a style of programming that Python was not intended to handle.
I do know how to use import - I do not wat to use it right now.
--
Bartlomiej Golenko
bartek at zts.ita.pwr.wroc.pl
More information about the Python-list
mailing list