Re: [Tutor] Isolation of code

2006-10-08 Thread Dave Kuhlman
On Sun, Oct 08, 2006 at 12:36:32PM +0530, Noufal Ibrahim wrote: > Greetings everyone, >I'm working on a little project that's similar to tcltutor for python. > I have a string which has some python code. I "compile" and "eval" this > to get the output. So far so good. However, when this happens

[Tutor] Isolation of code

2006-10-08 Thread Noufal Ibrahim
Greetings everyone, I'm working on a little project that's similar to tcltutor for python. I have a string which has some python code. I "compile" and "eval" this to get the output. So far so good. However, when this happens, the evaluation is happening in the current namespace so I'm afraid of

[Tutor] Isolation of code

2006-10-08 Thread Noufal Ibrahim
Greetings everyone, I'm working on a little project that's similar to tcltutor for python. I have a string which has some python code. I "compile" and "eval" this to get the output. So far so good. However, when this happens, the evaluation is happening in the current namespace so I'm afraid of