Path: csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'modified': 0.07; 'test,': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'restart': 0.09; 'python': 0.11; 'finney': 0.16; 'once.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:python': 0.16; ':-)': 0.16; 'do,': 0.16; 'module': 0.19; 'machine': 0.22; 'header:User-Agent:1': 0.23; 'developers': 0.25; 'header:X-Complaints-To:1': 0.27; 'function': 0.29; 'wonder': 0.29; 'errors': 0.30; 'code': 0.31; 'writes:': 0.31; 'file': 0.32; 'run': 0.32; 'text': 0.33; 'running': 0.33; 'subject:the': 0.34; 'editor': 0.35; 'should': 0.36; 'ben': 0.38; 'to:addr:python- list': 0.38; 'expect': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'hope': 0.61; 'skip:n 10': 0.64; 'confirm': 0.64; 'more': 0.64; '8bit%:21': 0.69; 'day': 0.76; '\xe2\x80\x93': 0.77; 'religion': 0.84; 'suspicion': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ben Finney Subject: Re: refresing the edited python function Date: Tue, 20 Aug 2013 11:09:37 +1000 References: <1376873736.85790.YahooMailNeo@web193402.mail.sg3.yahoo.com> <87haemjj92.fsf@handshake.de> <1376897267.58372.YahooMailNeo@web193402.mail.sg3.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: rasputin.madmonks.org X-Public-Key-ID: 0xBD41714B X-Public-Key-Fingerprint: 9CFE 12B0 791A 4267 887F 520C B7AC 2E51 BD41 714B X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-gpg.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:iAlGFh4/7KDfo/QjHYGdjxwF48s= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1376960991 news.xs4all.nl 15996 [2001:888:2000:d::a6]:54321 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52711 Sudheer Joseph writes: > I wonder how the code developers work in this case every time a > function is modified one has to restart the console is a nightmare... Developers use the interactive console for exploring, not developing. Use it to test, to confirm a suspicion about what a function call might do, to write code you know you will not run more than once. Any code you suspect might persist – and if you don't know, expect that it might persist – you should be writing in a module file and running as a program. > Hope one day some solution will be evolved. The time machine has brought you the solution: a text editor and the Python non-interactive session :-) -- \ “Generally speaking, the errors in religion are dangerous; | `\ those in philosophy only ridiculous.” —David Hume, _A Treatise | _o__) of Human Nature_, 1739 | Ben Finney