Re: How to modify a program while it's running?

2008-12-16 Thread Aaron Brady
On Dec 16, 11:47 pm, Paul Rubin wrote: > Joe Strout writes: > > So I'd like to restructure my app so that it can stay running and stay > > logged in, yet I can still update and reload at least most of the > > code.  But I'm not sure what's the best way to do this.  S

Re: How to modify a program while it's running?

2008-12-16 Thread Paul Rubin
Joe Strout writes: > So I'd like to restructure my app so that it can stay running and stay > logged in, yet I can still update and reload at least most of the > code. But I'm not sure what's the best way to do this. Should I move > the reloadable code into its own module, and then when I give m

Re: How to modify a program while it's running?

2008-12-16 Thread Aaron Brady
On Dec 16, 7:54 pm, "James Mills" wrote: > @Aaron > > Your code and suggestion is way too complicated. > Just register your objects. When you need to > reload your module, destroy the existing > objects and re-creat them. > > This works well assuming you have a stable > running core that maintains

Re: How to modify a program while it's running?

2008-12-16 Thread James Mills
@Aaron Your code and suggestion is way too complicated. Just register your objects. When you need to reload your module, destroy the existing objects and re-creat them. This works well assuming you have a stable running core that maintains the connection and that code doesn't change much. --Jame

Re: How to modify a program while it's running?

2008-12-16 Thread Aaron Brady
On Dec 16, 7:26 pm, Steven D'Aprano wrote: > On Tue, 16 Dec 2008 13:25:17 -0700, Joe Strout wrote: > > So I'd like to restructure my app so that it can stay running and stay > > logged in, yet I can still update and reload at least most of the code. > > But I'm not sure what's the best way to do t

Re: How to modify a program while it's running?

2008-12-16 Thread James Mills
On Wed, Dec 17, 2008 at 11:26 AM, Steven D'Aprano wrote: >> So I'd like to restructure my app so that it can stay running and stay >> logged in, yet I can still update and reload at least most of the code. >> But I'm not sure what's the best way to do this. Should I move the >> reloadable code in

Re: How to modify a program while it's running?

2008-12-16 Thread Steven D'Aprano
On Tue, 16 Dec 2008 13:25:17 -0700, Joe Strout wrote: > Here's my situation: I'm making an AIM bot, but the AIM server will get > annoyed if you log in too frequently (and then lock you out for a > while). So my usual build-a-little, test-a-little methodology doesn't > work too well. Ouch! What

Re: How to modify a program while it's running?

2008-12-16 Thread Ivan Illarionov
On Dec 16, 11:25 pm, Joe Strout wrote: > Here's my situation: I'm making an AIM bot, but the AIM server will   > get annoyed if you log in too frequently (and then lock you out for a   > while).  So my usual build-a-little, test-a-little methodology doesn't   > work too well. > > So I'd like to re

Re: How to modify a program while it's running?

2008-12-16 Thread Arnaud Delobelle
Joe Strout writes: > Here's my situation: I'm making an AIM bot, but the AIM server will > get annoyed if you log in too frequently (and then lock you out for a > while). So my usual build-a-little, test-a-little methodology doesn't > work too well. > > So I'd like to restructure my app so that

Re: How to modify a program while it's running?

2008-12-16 Thread Craig Allen
On Dec 16, 10:25 am, Joe Strout wrote: > Here's my situation: I'm making an AIM bot, but the AIM server will > get annoyed if you log in too frequently (and then lock you out for a > while). So my usual build-a-little, test-a-little methodology doesn't > work too well. > > So I'd like to restruct

How to modify a program while it's running?

2008-12-16 Thread Joe Strout
Here's my situation: I'm making an AIM bot, but the AIM server will get annoyed if you log in too frequently (and then lock you out for a while). So my usual build-a-little, test-a-little methodology doesn't work too well. So I'd like to restructure my app so that it can stay running and s