[Tutor] IDLE 1.2 Question

Jerry VanBrimmer jerry.vb at gmail.com
Sun Aug 12 20:45:38 CEST 2007


Thank you, sorry for the repeat question.

On 8/11/07, Luke Paireepinart <rabidpoobear at gmail.com> 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


More information about the Tutor mailing list