Using weakref with execfile?

Martin v. Loewis martin at
Mon Dec 22 01:11:58 CET 2003

William Trenker wrote:

> Am I doing something wrong with weakref, or is it even possible to use a weak reference dict with execfile?

No. You currently must pass genuine dictionaries to execfile (and exec 
and eval).


More information about the Python-list mailing list