[Tutor] does python have something like "#include" in C?
Emile van Sebille
emile at fenx.com
Mon Jun 29 17:27:45 CEST 2009
On 6/29/2009 8:03 AM Robert Lummis said...
> ... or any pre-processing at all?
>
> I'm looking for a way to get boiler plate code into the main program
> file. Of course I could copy and paste it with an editor but I was
> hoping for something more pythonic. I know about import but that's not
> the same.
import is the pythonic way. Most boilerplate code I've come across
provides basic functionality which is then accessed and used locally to
complete the task at hand. In Python you'd write library code to
provide that functionality and import and invoke those functions.
Emile
More information about the Tutor
mailing list