[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: frozen/builtin modules and new interpreter instances
From: "Patrick Stinson" <patrickkidd.lists () gmail ! com>
Date: 2008-04-11 19:28:33
Message-ID: 664bf2b80804111228l50561a30y1f6bbd56e7cf556 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
So when creating a new interpreter (thread state) are you expected to re-set
PyImport_FrozenModules and call yImport_ExtendInittab() again? the former
seems to get corrupted between Py_Initialize() and Py_NewInterpreter(). I
know that modules are not shared between interpreter instances, and it would
be nice to know how to handle built-in, frozen, and statically linked
modules.
Any generic help on this topic would be great. Thanks!
--
Patrick Kidd Stinson
http://www.patrickkidd.com/
http://pkaudio.sourceforge.net/
http://pksampler.sourceforge.net/
[Attachment #5 (text/html)]
<div><div>So when creating a new interpreter (thread state) are you expected to \
re-set PyImport_FrozenModules and call yImport_ExtendInittab() again? the former \
seems to get corrupted between Py_Initialize() and Py_NewInterpreter(). I know that \
modules are not shared between interpreter instances, and it would be nice to know \
how to handle built-in, frozen, and statically linked modules.</div> \
<div><br></div><div>Any generic help on this topic would be great. \
Thanks!</div></div><br>-- <br>Patrick Kidd Stinson<br><a \
href="http://www.patrickkidd.com/">http://www.patrickkidd.com/</a><br><a \
href="http://pkaudio.sourceforge.net/">http://pkaudio.sourceforge.net/</a><br> <a \
href="http://pksampler.sourceforge.net/">http://pksampler.sourceforge.net/</a>
--
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic