Re: Forgetting an import

2007-06-12 Thread Gabriel Genellina
En Tue, 12 Jun 2007 15:03:18 -0300, HMS Surprise <[EMAIL PROTECTED]> escribió: > Thanks for the reloads folks. This is a big help as I am running a > jython based tool (maxq) and re-starting takes awhile. > > Can't seem to make reload work using the form "from dvTime > import ...". So I am prefa

Re: Forgetting an import

2007-06-12 Thread Yongjian Xu
ipython supports deepreload which will recompile the bytecode from the file no matter what. You can set the option up in ipython and use it. It requires no exit to the current env. Jim On 6/12/07, Larry Bates <[EMAIL PROTECTED]> wrote: HMS Surprise wrote: > I imported a set of functions from a

Re: Forgetting an import

2007-06-12 Thread HMS Surprise
Thanks for the reloads folks. This is a big help as I am running a jython based tool (maxq) and re-starting takes awhile. Can't seem to make reload work using the form "from dvTime import ...". So I am prefacing my calls with the module name now. thanx, jh -- http://mail.python.org/mailman/lis

Re: Forgetting an import

2007-06-12 Thread Miki
Hello, > I imported a set of functions from a file I wrote to interpreter > shell: > > from myFile import * > > Now if I change functions in this file how can I make python forget it > so I can force a fresh import? "import *" is evil for many reasons, this is one of them :) >>> import my_module

Re: Forgetting an import

2007-06-12 Thread kyosohma
On Jun 12, 11:36 am, HMS Surprise <[EMAIL PROTECTED]> wrote: > I imported a set of functions from a file I wrote to interpreter > shell: > > from myFile import * > > Now if I change functions in this file how can I make python forget it > so I can force a fresh import? > > thanx, > > jh If you did

Re: Forgetting an import

2007-06-12 Thread René Fleschenberg
HMS Surprise schrieb: > I imported a set of functions from a file I wrote to interpreter > shell: > > from myFile import * > > Now if I change functions in this file how can I make python forget it > so I can force a fresh import? I think you are looking for reload(). But don't forget to check i

Re: Forgetting an import

2007-06-12 Thread Larry Bates
HMS Surprise wrote: > I imported a set of functions from a file I wrote to interpreter > shell: > > from myFile import * > > Now if I change functions in this file how can I make python forget it > so I can force a fresh import? > > thanx, > > jh > While there may be ways of doing this, I have

Forgetting an import

2007-06-12 Thread HMS Surprise
I imported a set of functions from a file I wrote to interpreter shell: from myFile import * Now if I change functions in this file how can I make python forget it so I can force a fresh import? thanx, jh -- http://mail.python.org/mailman/listinfo/python-list