
June 23, 2015
12:03 a.m.
On Tue, Jun 23, 2015 at 9:59 AM, Nathaniel Smith <njs@pobox.com> wrote:
One possibility would be for subinterpreters to copy modules from the main interpreter -- I guess your average module is mostly dicts, strings, type objects, and functions; strings and functions are already immutable and could be shared without copying, and I guess copying the dicts and type objects into the subinterpreter is much cheaper than hitting the disk etc. to do a real import. (Though certainly not free.)
FWIW, functions aren't immutable, but code objects are. ChrisA