Forgetting an import
René Fleschenberg
rene at korteklippe.de
Tue Jun 12 13:20:20 EDT 2007
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 its
documentation, there may be some caveats.
<http://docs.python.org/lib/built-in-funcs.html>
--
René
More information about the Python-list
mailing list