At Wednesday 20/9/2006 03:50, [EMAIL PROTECTED] wrote:
My application has a configuration file where lots of variables are
set. (The configuration file is python source, so there is no
home-brewed parsing involved.) The configuration file is starting to
get quite large and unwieldy, so for this
[EMAIL PROTECTED] wrote:
> Thanks to all who took time to answer!
>
>
>>> is it possible in python to include another python source file into the
>>> current namespace, i.e.completely analogous to the #include statement
>>> in C.
>
> [...]
>
>
[EMAIL PROTECTED] wrote:
> Thanks to all who took time to answer!
>
>
>>> is it possible in python to include another python source file into the
>>> current namespace, i.e.completely analogous to the #include statement
>>> in C.
>
> [...]
>
>
[EMAIL PROTECTED] wrote:
> Thanks to all who took time to answer!
>
>
>> > is it possible in python to include another python source file into the
>> > current namespace, i.e.completely analogous to the #include statement
>> > in C.
>
> [...]
>
Thanks to all who took time to answer!
> > is it possible in python to include another python source file into the
> > current namespace, i.e.completely analogous to the #include statement
> > in C.
[...]
> Tell us why you are contemplating such a thing, and someone
[EMAIL PROTECTED] wrote:
> Hello,
>
> is it possible in python to include another python source file into the
> current namespace, i.e.completely analogous to the #include statement
> in C.
>
> Regards Joakim
from blah import * # where blah is a blah.py file in sys.
> is it possible in python to include another python source file into the
> current namespace, i.e.completely analogous to the #include statement
> in C.
By using a pre-processor, like C does.
http://www.freenet.org.nz/python/pyp/
If you are new to Python, keep in mind that this is fo
[EMAIL PROTECTED] wrote:
> Hello,
>
> is it possible in python to include another python source file into the
> current namespace, i.e.completely analogous to the #include statement
> in C.
>
> Regards Joakim
>
>
No (thank heavens)! We left #include and other such pr
Hello,
is it possible in python to include another python source file into the
current namespace, i.e.completely analogous to the #include statement
in C.
Regards Joakim
--
http://mail.python.org/mailman/listinfo/python-list