[Python-bugs-list] [ python-Bugs-641111 ] Undocumented side effect of eval

noreply@sourceforge.net noreply@sourceforge.net
Wed, 20 Nov 2002 00:54:35 -0800


Bugs item #641111, was opened at 2002-11-20 11:54
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=641111&group_id=5470

Category: Python Library
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Dmitry Vasiliev (hdima)
Assigned to: Nobody/Anonymous (nobody)
Summary: Undocumented side effect of eval

Initial Comment:
Dictionary passed to eval as global name space is
filled up with global variables:

>>> m = {}
>>> m == {}
1
>>> eval("1", m)
1
>>> m == {}
0


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=641111&group_id=5470