On 5/8/07, Guido van Rossum <[EMAIL PROTECTED]> wrote:

On 5/8/07, Thomas Heller <[EMAIL PROTECTED]> wrote:
> Wouldn't multiple interpreters (assuming the problems with them would be
fixed)
> in the same process give the same benefit?  A separate GIL for each one?

No; numerous read-only and immutable objects (e.g. the small integers,
1-character strings, the empty tuple; and all built-in type objects)
are shared between all interpreters. Also, extensions can easily share
state between interpreters I believe.



All extensions share their state between interpreters.  The import machinery
literally caches the module dict for an extension and uses that to
reinitialize any new instances.

But Martin's PEP on module init helps to deal with this issue.

-Brett
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to