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 an import FunctionName, then you could use the "reload" built-in. Otherwise, I think you'll just have to restart the shell. <code> import FunctionName # do something # reload FunctionName after editing it reload(FunctionName) </code> Mike -- http://mail.python.org/mailman/listinfo/python-list