How to re-import a function from a module?

2008-11-05 Thread Kurda Yon
Hi, I have the following small problem. I run Python interactively. In the beginning of the run I import many functions from many modules. Than I execute some commands and notice that one of the imported functions contains a mistake. I open another terminal in which I open the file with the proble

Re: How to re-import a function from a module?

2008-11-05 Thread Ben Finney
Kurda Yon <[EMAIL PROTECTED]> writes: > Is there a way to force Python to re-import the function, i.e. to > force it to use the new version of the function? A Python ‘import’ is conceptually two steps: execute the module, then bind the objects that were created to names in a namespace. The impor

Re: How to re-import a function from a module?

2008-11-06 Thread Diez B. Roggisch
Kurda Yon wrote: > Hi, > > I have the following small problem. I run Python interactively. In the > beginning of the run I import many functions from many modules. Than I > execute some commands and notice that one of the imported functions > contains a mistake. I open another terminal in which I

Re: How to re-import a function from a module?

2008-11-06 Thread Aaron Brady
On Nov 5, 7:36 pm, Kurda Yon <[EMAIL PROTECTED]> wrote: > Hi, > > I have the following small problem. I run Python interactively. In the > beginning of the run I import many functions from many modules. Than I > execute some commands and notice that one of the imported functions > contains a mistak