[sage-support] Re: eval(string)

2009-09-09 Thread Tim Dumol
`eval(the_string, globals = {"__builtins__":None}, locals = {})` should do it. This removes access from all functions. Add any functions that are needed by adding them to the "locals" dictionary. As stated in: http://stackoverflow.com/questions/661084/security-of-pythons-eval-on-untrusted-string

[sage-support] Re: Trouble getting sage to find a bit of code I've written.

2009-09-06 Thread Tim Dumol
By "Sage shell", I meant a cell in a worksheet if you're using the Notebook, or the ipython interface of `sage`. Sorry for any confusion. On Sep 7, 12:12 am, "J. Cooley" wrote: > Thanks for your response. What and where is the Sage shell? > > Cheers. --~--~-~--~~~---~

[sage-support] Re: Trouble getting sage to find a bit of code I've written.

2009-09-06 Thread Tim Dumol
You need to `from sage.schemes.elliptic_curves.ell_curve_isogeny import ` first on the Sage shell, since `sage.schemes.elliptic_curves.ell_field` is not automatically imported. On Sep 6, 11:31 pm, "J. Cooley" wrote: > Firstly, sorry if my questions are stupid; I only started using sage 3 > weeks