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


Groups > comp.lang.python > #52781

Re: refresing the edited python function

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 2013-08-22 04:23 +1000
Subject Re: refresing the edited python function
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.93.1377109440.19984.python-list@python.org> (permalink)

Show all headers | 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