include statement

Ravi Teja webraviteja at gmail.com
Wed Sep 20 02:21:42 EDT 2006


> 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 cases
only. Since Python has a module system, there isn't a need for #include
as in C.




More information about the Python-list mailing list