A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/316286.html below:

Changing the module not taking effect in calling module

Changing the module not taking effect in calling module Changing the module not taking effect in calling moduleJuho Schultz juho.schultz at helsinki.fi
Tue Sep 27 05:01:57 EDT 2005
Gopal wrote:
> Hi,
> 
> I've a module report.py having a set of funtions to open/close/write
> data to a log file. I invoke these functions from another module
> script.py.
> 
> Whenever I'm changing something in report.py, I'm running the file
> (however, it has not effect). After that I'm running script.py again.
> However, the output is not taking effect.
> 
> If I shut the IDLE interpreter and all the other files and then reopen
> again; and then run script.py, the output is taking effect.
> 
> Is there any way to improve it? I'm new to Python.
> 
> -Gopal.
> 

you could try "reload(module)" instead of "import module" or running the file.

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4