a little help

Chris Angelico rosuav at gmail.com
Wed Jan 4 18:29:21 EST 2012


On Thu, Jan 5, 2012 at 10:25 AM, Andres Soto <soto_andres at yahoo.com> wrote:
> My situation is the following: I am developing some code. I use the IDLE
> Editor to write it down. Then, I save it and import it from the command line
> interface, so it is already available from the prompt.
> Then I load (read) some data from files using that code. Let suppose that
> after that I make some changes in the code using again the IDLE Editor, save
> the program code, and…what else? The updated code is not already available
> from the command line interface. If I run the module, I lose the data
> already loaded (and it is a big amount). If I re-import it, the new code is
> not available

Re-importing modules is a bit messy. The usual way to do this sort of
thing would be to run the program directly from the command line, and
terminate it when you're done. Is there a particular reason for
wanting to import it that way?

Chris Angelico



More information about the Python-list mailing list