Re: eval modifies passed dict

2008-04-14 Thread colas . francis
On 14 avr, 18:05, Duncan Booth <[EMAIL PROTECTED]> wrote: > Janto Dreijer <[EMAIL PROTECTED]> wrote: > > It seems eval is modifying the passed in locals/globals. This is > > behaviour I did not expect and is really messing up my web.py app. > > > Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12) > >

Re: eval modifies passed dict

2008-04-14 Thread Duncan Booth
Janto Dreijer <[EMAIL PROTECTED]> wrote: > It seems eval is modifying the passed in locals/globals. This is > behaviour I did not expect and is really messing up my web.py app. > > Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12) > [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on lin

Re: eval modifies passed dict

2008-04-14 Thread Arnaud Delobelle
On Apr 14, 4:23 pm, Janto Dreijer <[EMAIL PROTECTED]> wrote: > It seems eval is modifying the passed in locals/globals. This is > behaviour I did not expect and is really messing up my web.py app. Reading the documentation would be a good start: >From http://docs.python.org/lib/built-in-funcs.htm

Re: eval modifies passed dict

2008-04-14 Thread Janto Dreijer
On Apr 14, 5:48 pm, [EMAIL PROTECTED] wrote: > On 14 avr, 17:23, Janto Dreijer <[EMAIL PROTECTED]> wrote: > > > It seems eval is modifying the passed in locals/globals. This is > > behaviour I did not expect and is really messing up my web.py app. > > > Python 2.5.1 (r251:54863, Mar  7 2008, 04:10:

Re: eval modifies passed dict

2008-04-14 Thread colas . francis
On 14 avr, 17:23, Janto Dreijer <[EMAIL PROTECTED]> wrote: > It seems eval is modifying the passed in locals/globals. This is > behaviour I did not expect and is really messing up my web.py app. > > Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12) > [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16

eval modifies passed dict

2008-04-14 Thread Janto Dreijer
It seems eval is modifying the passed in locals/globals. This is behaviour I did not expect and is really messing up my web.py app. Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type "help", "copyright", "credits" or "license"