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,
>
> 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
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
> 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.
_
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
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
>
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