Ptyhon Thread Safety

Aahz Maruch aahz at netcom.com
Wed Jun 28 10:10:12 EDT 2000


In article <8jcu92$7op$1 at nnrp1.deja.com>,
Dale Burnett  <dburnett at mindspring.com> wrote:
>
>What is the status of thread safety in Python?  I saw some information
>stating that Python wasnt thread safe but not which version.

This is a somewhat complicated question.  The basic answer is that
Python is thread-safe if you use it correctly, particularly in the
context of pure Python; Python is *not* thread-safe if you have multiple
C/C++ threads making calls into a single interpreter session unless you
are very, very, very careful.
--
                      --- Aahz (Copyright 2000 by aahz at netcom.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

The best way to get information on Usenet is not to ask a question,
but to post the wrong information.  --Aahz



More information about the Python-list mailing list