Re: execfile() and locals()

2010-08-16 Thread fons
On Sun, Aug 15, 2010 at 11:24:25PM +, Steven D'Aprano wrote: > On Sun, 15 Aug 2010 23:21:51 +0200, fons wrote: > > > The documentation on execfile() and locals() makes it clear that code > > executed from execfile() can not modify local variables in the function >

Re: execfile() and locals()

2010-08-15 Thread Steven D'Aprano
On Sun, 15 Aug 2010 23:21:51 +0200, fons wrote: > Hello all, > > The documentation on execfile() and locals() makes it clear that code > executed from execfile() can not modify local variables in the function > from wich execfile() was called. Two questions about this: > >

Re: execfile() and locals()

2010-08-15 Thread Thomas Jollans
On Sunday 15 August 2010, it occurred to f...@kokkinizita.net to exclaim: > Hello all, > > The documentation on execfile() and locals() makes it clear that code > executed from execfile() can not modify local variables in the function > from wich execfile() was called. Two quest

execfile() and locals()

2010-08-15 Thread fons
Hello all, The documentation on execfile() and locals() makes it clear that code executed from execfile() can not modify local variables in the function from wich execfile() was called. Two questions about this: 1. Is there some way to circumvent this limitation (apart from explicitly copying