Re: CAPI and thread safety

2008-06-27 Thread Lane Brooks
Thanks for the pointer. I'll check it out. That is what I was looking for. Lane Benjamin wrote: On Jun 27, 4:33 pm, Lane Brooks <[EMAIL PROTECTED]> wrote: I am writing an extension module that needs to release the global interpreter lock during some blocking I/O calls, b

CAPI and thread safety

2008-06-27 Thread Lane Brooks
I am writing an extension module that needs to release the global interpreter lock during some blocking I/O calls, but I need a mutex in the C code to make some of the shared data in the extension module are kept thread safe. Can anyone recommend a portable way to do this? I could use a pthre

Embedding and undefined symbols

2007-03-19 Thread Lane Brooks
I am embedding python into a linux shared library (let's call it libembedpy.so). The main application loads this shared library dynamically using libdl and is not linked against libembedpy.so Under this scenerio, I get ImportErrors when I try import modules: File "test.py", line 3, in ?

Import Error with embedded python

2007-03-15 Thread Lane Brooks
When I run a particular python script from an embedded interpreter, I get the following ImportError: File "di.py", line 14, in load from xml.dom.ext.reader import Sax2 File "/usr/lib64/python2.4/site-packages/_xmlplus/dom/ext/reader/__init__.py", line 14, in ? import string, url

python bindings

2006-11-05 Thread Lane Brooks
into python? Thanks, Lane Brooks -- http://mail.python.org/mailman/listinfo/python-list