[Python-ideas] solving multi-core Python

Chris Angelico rosuav at gmail.com
Tue Jun 23 02:03:10 CEST 2015

On Tue, Jun 23, 2015 at 9:59 AM, Nathaniel Smith <njs at 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.


More information about the Python-ideas mailing list