Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'suppose': 0.05; 'andres': 0.09; 'am,': 0.12; 'received:209.85.210.174': 0.13; 'received :mail-iy0-f174.google.com': 0.13; 'editor,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 're- import': 0.16; 'wrote:': 0.18; 'jan': 0.19; 'subject:help': 0.21; 'header:In-Reply-To:1': 0.22; 'module,': 0.23; 'way?': 0.23; 'command': 0.24; 'loaded': 0.25; 'code': 0.25; 'code.': 0.26; 'load': 0.26; 'developing': 0.26; 'import': 0.27; 'code,': 0.27; '(and': 0.28; 'bit': 0.28; 'message-id:@mail.gmail.com': 0.28; 'idle': 0.29; 'usual': 0.29; 'terminate': 0.30; 'chris': 0.30; 'thu,': 0.32; 'wanting': 0.32; 'changes': 0.32; 'sort': 0.33; 'there': 0.33; 'updated': 0.33; 'to:addr:python-list': 0.34; 'done.': 0.34; 'modules': 0.35; 'interface.': 0.37; 'run': 0.37; 'received:google.com': 0.37; 'using': 0.38; 'some': 0.38; 'received:209.85': 0.38; 'files': 0.39; 'received:209': 0.40; 'to:addr:python.org': 0.40; '2012': 0.67; 'lose': 0.84; '10:25': 0.84; 'subject:little': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=xigAFAJpZuc8mtOHQdN4f3g1+HqjskSDeyVl4ERSKu8=; b=COtMd29mXPRHalyoNo5Q8yizp7T04mmswn4xWSMk9gYN/Ru4JHe2jwD4Frw/XEChCA C/UbcHCeBLg4esOq8/ywSXuPoFvfyQS5FsxtLA5Hc3ZnFyJK2lrtwzZSaeuWlLRwcAsl NrxD+B6t/xc0Ht2CZB6cCuAShHKkUwLL8wstk= MIME-Version: 1.0 In-Reply-To: <1325719533.2934.YahooMailNeo@web30605.mail.mud.yahoo.com> References: <1325719533.2934.YahooMailNeo@web30605.mail.mud.yahoo.com> Date: Thu, 5 Jan 2012 10:29:21 +1100 Subject: Re: a little help From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1325719764 news.xs4all.nl 6871 [2001:888:2000:d::a6]:41226 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18525 On Thu, Jan 5, 2012 at 10:25 AM, Andres Soto 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 l= ine > 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, s= ave > the program code, and=85what else? The updated code is not already availa= ble > 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