refresing the edited python function

Chris Angelico rosuav at gmail.com
Wed Aug 21 14:23:56 EDT 2013


On Wed, Aug 21, 2013 at 4:26 PM, Sudheer Joseph
<sudheer.joseph at 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



More information about the Python-list mailing list