So you are looking for something more along the lines of this<br><br><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Expressions">https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Expressions</a><br>
or this<br><a href="https://www.cs.drexel.edu/~rweaver/COURSES/ISTC-2/TOPICS/expr.html">https://www.cs.drexel.edu/~rweaver/COURSES/ISTC-2/TOPICS/expr.html</a><br><br>But for python.<br><br>This <a href="http://www.greenteapress.com/thinkpython/html/book003.html">http://www.greenteapress.com/thinkpython/html/book003.html</a>  comes close, but again it is too programming oriented.<br>
<br>I&#39;ll keep an eye out, but If you need something right away I&#39;d modify the Javascript Pages.  The info is available under a Creative Commons License, and it would not take too much time to make it &#39;pythonic&#39;.  I think the problem you are going to find is most python intro information is geared towards learning via the interactive interpreter (out of your scope) or too technical like the BNF grammer from the language reference.<br>
<br>-Bruce<br><br><div class="gmail_quote">On Wed, Aug 26, 2009 at 2:36 PM, Michael Foord <span dir="ltr">&lt;<a href="mailto:fuzzyman@voidspace.org.uk">fuzzyman@voidspace.org.uk</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">Christian Schmidt wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Bruce,<br>
<br>
thanks for your answer.<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
How much python will you let your users execute?<br>
</blockquote>
<br>
Potentially everything that can be put into<br>
<br>
ScriptEngine.CreateScriptSourceFromString(<br>
     Expression, _SourceCodeKind.Expression_).Execute(ScriptScope)<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Are they just typing in formulas or are they accessing data structure?<br>
</blockquote>
<br>
Normally they type in simple formulas. But they are also allowed to type in formulas that access functions, properties of classes/objects/data structures and generators.<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The Python Tutorial <a href="http://docs.python.org/tutorial/index.html" target="_blank">http://docs.python.org/tutorial/index.html</a>   or <a href="http://www.diveintopython.org" target="_blank">http://www.diveintopython.org</a> might be a good place to start, but if they will not be allowed to forms loops, etc both might be too much.  <br>

</blockquote>
<br>
These are all nicely written introductions to python &quot;programming&quot;. But that&#39;s too much: As Expression one can only enter &quot;one-liners&quot; - no structured programs, no function or class definitions, no control flow, no import statements ... simply no statements at all.<br>

<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Can you post an example if what someone would be entering with your program?<br>
</blockquote>
<br>
&quot;Distance * AvgSpeed&quot;<br>
<br>
&quot;Distance**0.9 if Distance &gt; 0 else 5&quot;<br>
<br>
&quot;sum([pos.time for pos in positions where pos.type = 7])&quot;<br>
<br>
&quot;complicated_function1(a,b) + complicated_function2({ param1: c, param2: 42 })&quot;<br>
<br>
where Distance, AvgSpeed, positions, a, b, c, ... are variables from the ScriptScope.<br>
</blockquote>
<br></div>
Unfortunately I don&#39;t think such a documentation exists (not that I&#39;m aware of but the internets is a big place). I wish it did - and if you write one then please make it public.<br>
<br>
The Python grammar is a good place to get the definitive syntax allowed in expressions, at least if you can read BNF.<br>
<br>
Michael<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
</blockquote>
<br>
<br></div><font color="#888888">
-- <br>
<a href="http://www.ironpythoninaction.com/" target="_blank">http://www.ironpythoninaction.com/</a><br>
<a href="http://www.voidspace.org.uk/blog" target="_blank">http://www.voidspace.org.uk/blog</a></font><div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
</div></div></blockquote></div><br>