Execute commands from file

Martin Blume mblume at socha.net
Sat May 19 10:36:44 EDT 2007


"Steve Holden" schrieb 
> 
> I simply meant that the whole source has to be presented 
> to the exec statement and not chunked into lines.
>
That's what I meant: With exec open(f).read() it is not 
broken into several exec invocations.

> 
> I was probably just a little over-zealous in pursuing 
> correct English usage, in which case please accept 
> my apology.
> 
The apology is on my part, I didn't explain my thinking
clearly enough.


Thanks for your explanations. Makes my newbie understanding 
of Python much more robust.

Regards
Martin





More information about the Python-list mailing list