Hi,

The C-API uses references counts as well, so it is not threadsafe.

Matthieu

2008/6/26 Pau Freixes <[EMAIL PROTECTED]>:
> But Python C-API[1] it's the main base for extent python with C/c++, and
> this is not not threadsafe.? I dont understand
>
> [1] http://docs.python.org/api/api.html
>
> On Thu, Jun 26, 2008 at 4:49 AM, Benjamin <[EMAIL PROTECTED]>
> wrote:
>>
>> On Jun 25, 9:05 am, Mirko Dziadzka <[EMAIL PROTECTED]> wrote:
>> >
>> > 1) Is there a reason for this?
>>
>> I think it is because the Python re library uses the Python C-API
>> which is not threadsafe.
>> > 2) Is the regex library not thread-safe?
>> > 3) Is it possible, to release the GIL in re.match() to
>> >    get more performance?
>>
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>
>
>
> --
> Pau Freixes
> Linux GNU/User
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
French PhD student
Website : http://matthieu-brucher.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to