Using weakref with execfile?

Martin v. Loewis martin at v.loewis.de
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).

Regards,
Martin





More information about the Python-list mailing list