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.
>
> [...]
>
>> Tell us why you are contemplating such a thing, an
[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.
>
> [...]
>
>> Tell us why you are contemplating such a thing, an
[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.
>
> [...]
>
>> Tell us why you are contemplating such a thing
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
> here will help you impleme
[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.path
Also see:
http://pyref.in
> 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 for special ca
[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 primitive
functionality back