On Dec 2, 10:46 am, Harald Schilly <harald.schi...@gmail.com> wrote: > On Dec 2, 5:01 pm, rjf <fate...@gmail.com> wrote: > > > In the Maxima environment, if someone detects an error in a lisp > > function, FF then the function > > can be replaced in the run-time environment, e.g. at a command line > > (%i100) by: > > :lisp (defun FF(x y z) <newdefinition>) > > In the Python environment, if someone detects an error in a Python > function FF, then the function can be replaced in the run-time > environment, e.g. at a command line by: > > >>> def FF(x): > > ... return 2*x
By the way, I discovered accidentally that from the command line (not the notebook) if you type: sage: ed # or %ed or %edit then it opens up your favorite editor (whatever is set by the $EDITOR shell variable). Then in the editor you can type def FF(x): long definition here which would be really annoying to type on the command line then save it -- it gets written to a temporary file -- and the code gets executed and you have thus redefined FF. Then later you can do sage: ed FF and it will let you modify your code. This is an ipython feature, it seems. Should it be described somewhere in the Sage documentation? -- John -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org