]> granicus.if.org Git - python/commit
Get "stopped" back into repr(Thread) when appropriate.
authorTim Peters <tim@python.org>
Mon, 9 Sep 2013 23:48:24 +0000 (18:48 -0500)
committerTim Peters <tim@python.org>
Mon, 9 Sep 2013 23:48:24 +0000 (18:48 -0500)
commit72460fa68ba98f5aa94cdc842070884403c0fc73
treec35fa089da52dce5cb1f10c373ce19b9b90e76c8
parentb5e9ac9ec63f2d437515edd2cbce31c5774e9dbd
Get "stopped" back into repr(Thread) when appropriate.

Due to recent changes, a Thread doesn't know that it's over before
someone calls .join() or .is_alive().  That meant repr(Thread)
continued to include "started" (and not "stopped") before one of
those methods was called, even if hours passed since the thread
ended.

Repaired that.
Lib/test/test_threading.py
Lib/threading.py