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