import question

Emile van Sebille emile at
Tue Oct 16 17:42:44 CEST 2001

What you're looking for is reload.  Watch out for its 'gotcha's though, as
you may not get what you'd expect from previous existing objects.



Emile van Sebille
emile at

"Vojin Jovanovic" <vjovanov at> wrote in message
news:WgYy7.1$LT2.107626 at
> Suppose I have a file file that contains a function
> and now I do import foo.   Then, I have my function available
> in python.  But let's suppose that I decide to change the function in
> file
> Why is it that doing import foo again doesn't load the new definition  of
> the function
> which would be normal behavior in LISP for example?
> Because of not having such behavior in Python one has to exit the program
> and then
> do import foo in order to load the new definition!?
> Vin

More information about the Python-list mailing list