exec '' in {} what does this do?

Martin v. Loewis martin at v.loewis.de
Tue Nov 5 17:51:35 EST 2002


Lee Harr <missive at frontiernet.net> writes:

> What is happening here? I am totally lost.
> 
> I thought "in" checked to see if a key was in the dict,
> I do not understand why this inserts anything in to the dict.

Maybe

http://www.python.org/doc/current/ref/exec.html

enlightens you?

Regards,
Martin



More information about the Python-list mailing list