Thank you, sorry for the repeat question.

On 8/11/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote:
> It depends whether IDLE is opened with a subprocess or not.  If it's a
> subprocess, your program will have a separate interpreter entirely from
> that used by IDLE, so the namespace will be the default namespace.
> If IDLE doesn't have a subprocess, your program will be run in the same
> interpreter as IDLE itself is running in, and since IDLE doesn't end
> between runs of your program, all the variables you declare will hang
> around.
> You could test this if you want.  Do
> import random
> print random.randint(1,5)
>
> then take out the import and run it again.  If the print statement still
> works, IDLE's not using a subprocess.
> There have been many threads about this, it's usually a Windows issue.
> -Luke
>


-- 
Jesus is coming!................................................Rev. 1:7
The Bottom Line................................................John 3:3-7
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to