Get functions called in a Python expression
<p>I have a database that holds the name of Python functions and a string for their code. I want the user to be able to enter a Python code and see the result. The problem is that I need to know the names of the functions they call in order to retrieve the code from the database. For instance, if they enter <code>cubic_fit(1, 2, get_data())</code>, I need a way to get the function names <code>cubic_fit</code> and <code>get_data</code>. Is there a good way to do this?</p>
