How to know if a module is thread-safe

Discussion in 'Python' started by Jérémy Wagner, Apr 17, 2008.

  1. Hi, I recently tried to use the subprocess module
    within a threading.Thread class, but it appears the module
    is not thread-safe.

    What is the policy of python regarding thread-safety of a module ?
    Jérémy Wagner, Apr 17, 2008
    #1
    1. Advertising

  2. Jérémy Wagner wrote:
    > Hi, I recently tried to use the subprocess module
    > within a threading.Thread class, but it appears the module
    > is not thread-safe.


    http://bugs.python.org/issue1731717

    Pretty bad bug, really, since subprocess is supposed to be the
    replacement for all the other mechanisms like popen2 and os.popen*

    >
    > What is the policy of python regarding thread-safety of a module ?


    I personally don't know. But any module that's not thread safe would be
    a bug in my mind.
    Michael Torrie, Apr 17, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    320
    Boris Kolpackov
    Jun 18, 2007
  2. Replies:
    6
    Views:
    259
    Rhamphoryncus
    May 20, 2008
  3. Gabriel Rossetti
    Replies:
    0
    Views:
    1,298
    Gabriel Rossetti
    Aug 29, 2008
  4. John Nagle
    Replies:
    5
    Views:
    454
    John Nagle
    Mar 12, 2012
  5. Andries

    I know, I know, I don't know

    Andries, Apr 23, 2004, in forum: Perl Misc
    Replies:
    3
    Views:
    222
    Gregory Toomey
    Apr 23, 2004
Loading...

Share This Page