_Thread.__init__) was never used. This is a waste since locks use OS
primitives that are in limited supply. So the lock is deleted in
_DummyThread.__init__ .
Closes bug #
1089632.
def __init__(self):
Thread.__init__(self, name=_newname("Dummy-%d"))
+ del self._Thread__block
self._Thread__started = True
_active_limbo_lock.acquire()
_active[_get_ident()] = self
Library
-------
+- _DummyThread objects in the threading module now delete self.__block that is
+ inherited from _Thread since it uses up a lock allocated by 'thread'. The
+ lock primitives tend to be limited in number and thus should not be wasted on
+ a _DummyThread object. Fixes bug #1089632.
+
- The imghdr module now detects Exif files.
- StringIO.truncate() now correctly adjusts the size attribute.