[Python-Dev] Import lock knowledge required!
Jack Jansen
Jack.Jansen@oratrix.com
Sat, 15 Feb 2003 17:31:49 +0100
On zaterdag, feb 15, 2003, at 16:49 Europe/Amsterdam, M.-A. Lemburg
wrote:
> I think we're running into a similar bootstrap problem as
> we did when we had exceptions coded in Python. The solution
> back then was to recode it in C. Perhaps the warnings module
> should get the same treatment ?!
There are other modules with the same potential problem. For instance,
the code that
prints MacOS error messages imports a Python module to get at the texts
of the
messages. I haven't had any reports of deadlocks, but I haven't looked
for them
either, so it may be possible this code gets called with the import
lock held.
And at first glance code using cobject's PyCobject_import() may be at
risk too (only at first
glance: I didn't check to see whether such code is ever executed with
with import lock held).
--
- Jack Jansen <Jack.Jansen@oratrix.com>
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- Emma
Goldman -