ankursethi
April 10th, 2008, 08:13 AM
I need a bit of help with the Emacs python-mode.
When I write a Python script using Emacs and execute it, bingo! It works. But after the script is done, it leaves all the variables from the execution hanging behind in the inferior Python interpreter. So if I change my script to use different variables, or to use the same variables for different jobs, havoc ensues. The namespace literally gets mutilated.
Is there a way to reload the interpreter each time I execute the script? I can obviously kill the interpreter *manually* each time a script finishes executing but if I was into doing things manually I wouldn't be using Emacs in the first place.
WARNING : I'm an En00b. No knowledge of elisp.
When I write a Python script using Emacs and execute it, bingo! It works. But after the script is done, it leaves all the variables from the execution hanging behind in the inferior Python interpreter. So if I change my script to use different variables, or to use the same variables for different jobs, havoc ensues. The namespace literally gets mutilated.
Is there a way to reload the interpreter each time I execute the script? I can obviously kill the interpreter *manually* each time a script finishes executing but if I was into doing things manually I wouldn't be using Emacs in the first place.
WARNING : I'm an En00b. No knowledge of elisp.