[New-bugs-announce] [issue29376] threading._DummyThread.__repr__ raises AssertionError

Tom Myers report at bugs.python.org
Wed Jan 25 18:10:08 EST 2017


New submission from Tom Myers:

_DummyThread objects have _is_stopped = False, but _tstate_lock = None.  This causes an AssertionError in is_alive and __repr__ .

  File ".../cp34/lib/python3.4/threading.py", line 814, in __repr__
    self.is_alive() # easy way to get ._is_stopped set when appropriate
  File ".../cp34/lib/python3.4/threading.py", line 1110, in is_alive
    self._wait_for_tstate_lock(False)
  File ".../cp34/lib/python3.4/threading.py", line 1066, in _wait_for_tstate_lock
    assert self._is_stopped
AssertionError

----------
components: Library (Lib)
messages: 286285
nosy: Tom Myers
priority: normal
severity: normal
status: open
title: threading._DummyThread.__repr__ raises AssertionError
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29376>
_______________________________________


More information about the New-bugs-announce mailing list