A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-February/033442.html below:

[Python-Dev] Import lock knowledge required!

[Python-Dev] Import lock knowledge required! [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 -




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4