Popular Python recipes tagged "exec"http://code.activestate.com/recipes/langs/python/tags/exec/2011-02-24T10:17:32-08:00ActiveState Code RecipesUniversal eval to string function (Python) 2011-02-24T10:17:32-08:00Jakub Jankiewiczhttp://code.activestate.com/recipes/users/4028109/http://code.activestate.com/recipes/577585-universal-eval-to-string-function/ <p style="color: grey"> Python recipe 577585 by <a href="/recipes/users/4028109/">Jakub Jankiewicz</a> (<a href="/recipes/tags/evaluation/">evaluation</a>, <a href="/recipes/tags/exec/">exec</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/python_scripts/">python_scripts</a>). </p> <p>This is a function that evaluate all expressions and statements and return the result as a string. It also return Exceptions as strings. It is used in <a href="http://trypython.jcubic.pl">trypython.jcubic.pl</a></p>