<div class="gmail_quote">On Tue, Oct 20, 2009 at 1:59 PM, Andreas Roehler <span dir="ltr"><<a href="mailto:andreas.roehler@online.de">andreas.roehler@online.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Rustom wrote:<br>
> (cmd (format "exec(compile(open('%s').read(), '%s', 'exec')) #<br>
> PYTHON-MODE\n" filename filename)))<br>
</div>What puzzles me still is a pure python question -<br>
<br>
do we need this `read()' here, i.e. if a file opened is<br>
delivered to exec, will it not being read anyway?<br>
<div><div></div><div class="h5"><br>
Thanks<br>
<br></div></div></blockquote><div><br>See Guido's 2 to 3 doc<br><a href="http://docs.python.org/dev/3.0/whatsnew/3.0.html#removed-syntax">http://docs.python.org/dev/3.0/whatsnew/3.0.html#removed-syntax</a><br>says stream argument not taken<br>
<br></div></div><br>