import question

Emile van Sebille emile at fenx.com
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.

HTH,

--

Emile van Sebille
emile at fenx.com

---------
"Vojin Jovanovic" <vjovanov at stevens-tech.edu> wrote in message
news:WgYy7.1$LT2.107626 at newnews.cc.stevens-tech.edu...
> Suppose I have a file foo.py 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
foo.py
> 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