<div class="gmail_quote">On Tue, Oct 20, 2009 at 1:59 PM, Andreas Roehler <span dir="ltr">&lt;<a href="mailto:andreas.roehler@online.de">andreas.roehler@online.de</a>&gt;</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>
&gt; (cmd (format &quot;exec(compile(open(&#39;%s&#39;).read(), &#39;%s&#39;, &#39;exec&#39;)) #<br>
&gt; PYTHON-MODE\n&quot; filename filename)))<br>
</div>What puzzles me still is a pure python question -<br>
<br>
do we need this `read()&#39; 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&#39;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>