]> granicus.if.org Git - python/commit
Thread.__delete: Discussion of internal obscurities belongs in comments
authorTim Peters <tim.peters@gmail.com>
Wed, 21 Jul 2004 03:36:52 +0000 (03:36 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 21 Jul 2004 03:36:52 +0000 (03:36 +0000)
commit21429932e4f1c31a25c943853eb6c968b5cf9a82
tree81b6d54ab2654895894748362bd229483523dc0a
parent090e636add33907d196b9899eb0f019654a055e8
Thread.__delete:  Discussion of internal obscurities belongs in comments
rather than in docstrings.  Rewrote so that _active_limbo_lock is released
no matter what happens (it could have been left locked if _sys got None'd
out).  Use "in" in preference to has_key() for dict lookup.  Don't bother
looking for 'dummy_threading' in sys.modules unless KeyError is raised.
Since the heart of the method is the del, do that in only one place.
Lib/threading.py