Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52781

Re: refresing the edited python function

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.027
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; '21,': 0.07; 'restarting': 0.07; 'run,': 0.09; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'reload': 0.16; 'sync': 0.16; 'subject:python': 0.16; 'apps': 0.16; 'prevent': 0.16; 'language': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'aug': 0.22; 'otherwise,': 0.22; 'header:In-Reply-To:1': 0.27; 'feature': 0.29; '(like': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'languages': 0.32; 'run': 0.32; 'running': 0.33; 'subject:the': 0.34; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'application': 0.37; 'thank': 0.38; 'handle': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'previous': 0.38; 'rather': 0.38; 'anything': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'simply': 0.61; "you're": 0.61; 'more': 0.64; 'wish': 0.70; 'risk': 0.72; '4:26': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=P7a+OO67mdFUz5vsSmuOcb1U8w/OgKTzM4DA9CcPRjU=; b=yJ4SpSF1cgUlXAS/4YM68nMacKuC7MthE4ruz2NzR2wPh7LTfIBcjl2Qqaa369VQyl uzzOcYieGjMG3N8M/tzmmwarwm0J9XFvBF+1A6powNJVBgkZRRfsOU74cx9DF27MuYx5 DO1Q7Sy9EhJRZZU9BV4rFzn7Z3YcOlKHQ77ssmeS4G1LETJQVNiqHmGqZnODYTvbyohw JgO2qGTZ5A+1a6muY2HK5DY3ZShXQ6qzj/wZeUwxxQPxuumc/8iLScehILpVd++qbnJM CIpgQu+YHPiDaSyFlghN1gf1Zw/n37rK8PzeL7y+3mx/9oX3Si5ixGatLt+c+c/jPXSE 4/EA==
MIME-Version 1.0
X-Received by 10.52.76.38 with SMTP id h6mr6170266vdw.10.1377109436791; Wed, 21 Aug 2013 11:23:56 -0700 (PDT)
In-Reply-To <1377066414.77885.YahooMailNeo@web193403.mail.sg3.yahoo.com>
References <1376873736.85790.YahooMailNeo@web193402.mail.sg3.yahoo.com> <240094707.38267207.1377016657069.JavaMail.root@sequans.com> <1377066414.77885.YahooMailNeo@web193403.mail.sg3.yahoo.com>
Date Thu, 22 Aug 2013 04:23:56 +1000
Subject Re: refresing the edited python function
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.93.1377109440.19984.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1377109440 news.xs4all.nl 15927 [2001:888:2000:d::a6]:38322
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:52781

Show key headers only | View raw


On Wed, Aug 21, 2013 at 4:26 PM, Sudheer Joseph
<sudheer.joseph@yahoo.com> wrote:
>
>
> Thank you,
>                 But I wish if there was a foolproof reload
> with best regards,
> Sudheer

There isn't, any more than there's a foolproof way to prevent
top-posting. Some languages are designed to handle code reload; others
simply aren't. Python is one of the latter. And even when you're using
a language like Pike, you really have to design your application
around code reload; so it's a feature of specific apps (like MUDs)
that will be running for years on end without restarting, rather than
something that you want all the time. Otherwise, you run the risk of
having internal data structures and code out of sync - and if you're
not keeping anything significant from the previous run, then why are
you reloading code instead of restarting the app?

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: refresing the edited python function Chris Angelico <rosuav@gmail.com> - 2013-08-22 04:23 +1000

csiph-web