Re: [Tutor] about reload

2006-12-30 Thread linda.s
On 12/30/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: > > > I got confused now:-> if IDLE keeps the imports in between runs of the > > program, do I still need import and reload? or click F5 in IDLE is OK? > > > The purpose of import is so that python knows what packages you intend > to use, >

Re: [Tutor] about reload

2006-12-30 Thread Luke Paireepinart
> I got confused now:-> if IDLE keeps the imports in between runs of the > program, do I still need import and reload? or click F5 in IDLE is OK? > The purpose of import is so that python knows what packages you intend to use, because if it imported every package every time, then many bad things

Re: [Tutor] about reload

2006-12-29 Thread linda.s
On 12/29/06, Danny Yoo <[EMAIL PROTECTED]> wrote: > > Actually, if you have IDLE in the default setup on Windows and you > > right-click something to edit it, > > IDLE doesn't open a subprocess each time a script is executed, so it > > will keep the imports in between runs of the program. > > Hi Lu

Re: [Tutor] about reload

2006-12-29 Thread Danny Yoo
> Actually, if you have IDLE in the default setup on Windows and you > right-click something to edit it, > IDLE doesn't open a subprocess each time a script is executed, so it > will keep the imports in between runs of the program. Hi Luke, Ah, thanks for the correction. _

Re: [Tutor] about reload

2006-12-29 Thread Luke Paireepinart
Danny Yoo wrote: > On Fri, 29 Dec 2006, linda.s wrote: > > >> I read something about reload of modules. >> #test.py >> from ABC import M # M is an attribute of Module ABC >> >> if I change module ABC, I need import ABC and reload ABC before "from >> ABC import M" work. in IDLE, I just click F5

Re: [Tutor] about reload

2006-12-29 Thread Danny Yoo
On Fri, 29 Dec 2006, linda.s wrote: > I read something about reload of modules. > #test.py > from ABC import M # M is an attribute of Module ABC > > if I change module ABC, I need import ABC and reload ABC before "from > ABC import M" work. in IDLE, I just click F5 and run the code, it works >

[Tutor] about reload

2006-12-29 Thread linda.s
I read something about reload of modules. #test.py from ABC import M # M is an attribute of Module ABC if I change module ABC, I need import ABC and reload ABC before "from ABC import M" work. in IDLE, I just click F5 and run the code, it works and does not need type anything like "Import ABC", "R