[Python-Dev] Safe to change a thread's interpreter?
Phillip J. Eby
pje at telecommunity.com
Mon Aug 2 06:54:08 CEST 2004
At 06:19 AM 8/2/04 +0200, Martin v. Löwis wrote:
>Phillip J. Eby wrote:
>>Recently I've been researching implementation strategies for adding Java
>>classloader-like capabilities to Python. I was pleasantly surprised to
>>find out that CPython already supports multiple interpreters via the C
>>API, where each "interpreter" includes fresh versions of 'sys',
>>'__builtin__', etc.
>
>You should be aware that many of us consider the feature of multiple
>interpreters broken. For example, global variables in extension modules
>are shared across interpreters, and there is nothing that can be done
>about this, except for changing the entire C API.
Yes, I saw that as a documented limitation. Are there undocumented
limitations as well? Is the feature headed for deprecation? I guess I'm
not understanding your implication(s), if any.
More information about the Python-Dev
mailing list