Re: re-importing modules

2007-05-01 Thread Chris Mellon
On 5/1/07, John Nagle <[EMAIL PROTECTED]> wrote: > Steven D'Aprano wrote: > > I'd hate for reload to disappear, it is great for interactive > > development/debugging, at least under some circumstances. (If you have > > complex and tangled class hierarchies, it might not be powerful enough.) > > > >

Re: re-importing modules

2007-05-01 Thread [EMAIL PROTECTED]
John Nagle wrote: > Steven D'Aprano wrote: > > I'd hate for reload to disappear, it is great for interactive > > development/debugging, at least under some circumstances. (If you have > > complex and tangled class hierarchies, it might not be powerful enough.) > > > > As for the semantics being awf

RE: re-importing modules

2007-05-01 Thread Hamilton, William
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of John Nagle > Sent: Monday, April 30, 2007 7:32 PM > To: python-list@python.org > Subject: Re: re-importing modules > > [EMAIL PROTECTED] wrote: > > >>In

Re: re-importing modules

2007-04-30 Thread John Nagle
Graham Dumpleton wrote: > On May 1, 3:51 pm, Paul Rubin wrote: > >>Graham Dumpleton <[EMAIL PROTECTED]> writes: >> >>>That it doesn't reload a parent when a child changes may be fine in an >>>interactive debugger, but can cause problems if not done where >>>automatic rel

Re: re-importing modules

2007-04-30 Thread Graham Dumpleton
On May 1, 3:51 pm, Paul Rubin wrote: > Graham Dumpleton <[EMAIL PROTECTED]> writes: > > That it doesn't reload a parent when a child changes may be fine in an > > interactive debugger, but can cause problems if not done where > > automatic reloading is being done in a lon

Re: re-importing modules

2007-04-30 Thread Paul Rubin
Graham Dumpleton <[EMAIL PROTECTED]> writes: > That it doesn't reload a parent when a child changes may be fine in an > interactive debugger, but can cause problems if not done where > automatic reloading is being done in a long running web application > where you want to avoid server restarts. O

Re: re-importing modules

2007-04-30 Thread Graham Dumpleton
On May 1, 2:17 pm, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Tue, 01 May 2007 00:32:20 +, John Nagle wrote: > > [EMAIL PROTECTED] wrote: > > >>>In addition to the warning that reload() does not recursively reload > >>>modules that the reloaded module depends on, be warned that reloading a

Re: re-importing modules

2007-04-30 Thread John Nagle
Steven D'Aprano wrote: > I'd hate for reload to disappear, it is great for interactive > development/debugging, at least under some circumstances. (If you have > complex and tangled class hierarchies, it might not be powerful enough.) > > As for the semantics being awful, I disagree. reload() does

Re: re-importing modules

2007-04-30 Thread Steven D'Aprano
On Tue, 01 May 2007 00:32:20 +, John Nagle wrote: > [EMAIL PROTECTED] wrote: > >>>In addition to the warning that reload() does not recursively reload >>>modules that the reloaded module depends on, be warned that reloading a >>>module does not magically affect any functions or objects from t

Re: re-importing modules

2007-04-30 Thread John Nagle
Gabriel Genellina wrote: > En Mon, 30 Apr 2007 21:32:20 -0300, John Nagle <[EMAIL PROTECTED]> > escribió: > >> [EMAIL PROTECTED] wrote: >> In addition to the warning that reload() does not recursively reload modules that the reloaded module depends on, be warned that reloading a m

Re: re-importing modules

2007-04-30 Thread Gabriel Genellina
En Mon, 30 Apr 2007 21:32:20 -0300, John Nagle <[EMAIL PROTECTED]> escribió: > [EMAIL PROTECTED] wrote: > >>> In addition to the warning that reload() does not recursively reload >>> modules that the reloaded module depends on, be warned that reloading a >>> module does not magically affect any

Re: re-importing modules

2007-04-30 Thread John Nagle
[EMAIL PROTECTED] wrote: >>In addition to the warning that reload() does not recursively reload >>modules that the reloaded module depends on, be warned that reloading a >>module does not magically affect any functions or objects from the old >>version that you may be holding on to. Maybe rel

Re: re-importing modules

2007-04-30 Thread kyosohma
On Apr 30, 3:00 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Mon, 2007-04-30 at 12:44 -0700, [EMAIL PROTECTED] wrote: > > On Apr 30, 12:49 pm, "T. Crane" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > When troubleshooting code that's saved in a text file, I often find that I > > > want to make a

Re: re-importing modules

2007-04-30 Thread Carsten Haese
On Mon, 2007-04-30 at 12:44 -0700, [EMAIL PROTECTED] wrote: > On Apr 30, 12:49 pm, "T. Crane" <[EMAIL PROTECTED]> wrote: > > Hi, > > > > When troubleshooting code that's saved in a text file, I often find that I > > want to make a change to it, re-save it, then reimport it. However, just > > typin

Re: re-importing modules

2007-04-30 Thread kyosohma
On Apr 30, 12:49 pm, "T. Crane" <[EMAIL PROTECTED]> wrote: > Hi, > > When troubleshooting code that's saved in a text file, I often find that I > want to make a change to it, re-save it, then reimport it. However, just > typing > > import myTestCode > > doesn't always seem to import the newer vers