[Tutor] eval weirdness
gp@pooryorick.com
gp@pooryorick.com
Fri Nov 29 20:27:02 2002
Hi,
It appears that the following code causes __builtins__=2E__dict__ to be
assigned to self=2Enames=2E Can anyone help me understand what is going o=
n
here?
class testclass:
def __init__(self):
self=2Enames =3D {}
eval('5 + 5', self=2Enames, self=2Enames)
print self=2Enames
if __name__ =3D=3D '__main__':
testclass()
Thanks,
Poor Yorick
gp at pooryorick=2Ecom
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web=2Ecom/ =2E