> Is there some way to track references per interpreter, or to get the > memory allocator to set up seperate arenas per interpreter so that it > can remove all allocated memory when the interpreter exits?
No. The multi-interpreter feature doesn't really work, so you are basically on your own. If you find out what the problem is, please submit patches to bugs.python.org. In any case, the strategy you propose (with multiple arenas) would *not* work, since some objects have to be shared across interpreters. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list