Reference values for exec

2009-10-28 Thread Garito
Hi! I'm trying to use exec in a recursive way but I have a problem When I read the manual I understand that the globals and the locals are passed by reference but if I try to use it in a recursive way the new values added in a step are not passed to the next one Could someone point me how to do

Re: Reference values for exec

2009-10-28 Thread Dave Angel
Garito wrote: Hi! I'm trying to use exec in a recursive way but I have a problem When I read the manual I understand that the globals and the locals are passed by reference but if I try to use it in a recursive way the new values added in a step are not passed to the next one Could someone

Re: Reference values for exec

2009-10-28 Thread Garito
Perhaps but the fact is that I need to execute code from some files in the filesystem and I need to have a common stack for them 2 questions came to my mind: 1.- How can I execute code from files in the filesystem? (I choose exec for that) 2.- If exec is my only option: how can I use a common

Re: Reference values for exec

2009-10-28 Thread Dave Angel
(You top-posted, so I almost missed your addition. It's conventional on this newsgroup to bottom-post -- inline where appropriate, or at the end) Garito wrote: Perhaps but the fact is that I need to execute code from some files in the filesystem and I need to have a common stack for them 2

Re: Reference values for exec

2009-10-28 Thread Garito
Ok, imagine then that I need to execute code from a database query What I'm trying to do is something similar that Python Scripts in Zope. Do you know it? How can I do that? Thanks you !! 2009/10/28 Dave Angel da...@ieee.org (You top-posted, so I almost missed your addition. It's