a little help

Chris Angelico rosuav at gmail.com
Wed Jan 4 19:32:19 EST 2012

On Thu, Jan 5, 2012 at 11:29 AM, Andres Soto <soto_andres at yahoo.com> wrote:
> my mistake is because I have no problem to do that using Prolog which use an
> interpreter as Python. I thought that the variables in the main global
> memory space (associated with the command line environment) were kept,
> although the code that use it could change.
> As you explain me, Python behave like a compiled language: any time I make a
> change in the code, I have to "compile" it again, and re-run (and re-load
> the data). There is nothing to do.

Yeah. There are ways around it (there's a 'reload' function in Python
2, or 'imp.reload' in Python 3), but it's usually simpler and safer to
fully restart.


More information about the Python-list mailing list