Using weakref with execfile?

Martin v. Loewis martin at v.loewis.de
Sun Dec 21 19:11:58 EST 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