<html>
<body>
At 10:57 AM 4/6/2005, * William wrote:<br>
<blockquote type=cite class=cite cite="">[snip]<br>
I want to execute a statement indirectly in Python. Take the simple case
below.&nbsp; The chevrons &quot;&gt;&gt; &quot; indicate the result of
the statement<br>

<dl>
<dd><font face="Courier New, Courier">b = 2<br>

<dd>a = b + 6<br>

<dd>eval('a = b + 6', globals(), locals() )</font></blockquote>
</dl><br>
There are often better solutions than exec. Tell us a bit more about what
you are trying to accomplish.<br>
<x-sigsep><p></x-sigsep>
<font size=2>Bob Gailer<br>
<a href="mailto:bgailer@alum.rpi.edu" eudora="autourl">mailto:bgailer@alum.rpi.edu<br>
</a>510 558 3275 home<br>
720 938 2625 cell</font> </body>
</html>