stopping a thread with _Thread__stop

Discussion in 'Python' started by Eli Bendersky, Aug 5, 2011.

  1. This recipe: http://code.activestate.com/recipes/576780-timeout-for-nearly-any-callable/

    Claims that a Python thread can be stopped by executing the private
    method "Thread._Thread__stop". I don't think this is true, since
    _Thread__stop doesn't really stop or kill the thread. In conformance
    to theory, the "timelimited" method this recipe defines leaves a
    thread running in the background if the function it's given is
    long-running (or infinite). Is there something I'm missing?

    Eli
    Eli Bendersky, Aug 5, 2011
    #1
    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:
    1
    Views:
    450
    Alvin Bruney - ASP.NET MVP
    Nov 4, 2005
  2. Kevin Jennings

    Safely stopping a thread

    Kevin Jennings, Apr 21, 2004, in forum: Java
    Replies:
    2
    Views:
    547
    Roedy Green
    Apr 21, 2004
  3. Ivan Villanueva
    Replies:
    2
    Views:
    650
    Antti S. Brax
    Jun 9, 2005
  4. Fabiano Sidler

    Stopping a thread from another one

    Fabiano Sidler, Jun 23, 2004, in forum: Python
    Replies:
    6
    Views:
    1,458
    Antoon Pardon
    Jun 24, 2004
  5. Replies:
    2
    Views:
    421
    alfanick
    Aug 20, 2006
Loading...

Share This Page