[issue33621] repr(threading._DummyThread) always fails.

Fabio Zadrozny report at bugs.python.org
Thu May 24 06:55:06 EDT 2018


Fabio Zadrozny <fabioz at users.sourceforge.net> added the comment:

Python 3.6.0 |Continuum Analytics, Inc.| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import threading
>>> repr(threading._DummyThread())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\tools\Miniconda\envs\pyqt5\lib\threading.py", line 819, in __repr__
    self.is_alive() # easy way to get ._is_stopped set when appropriate
  File "C:\tools\Miniconda\envs\pyqt5\lib\threading.py", line 1115, in is_alive
    self._wait_for_tstate_lock(False)
  File "C:\tools\Miniconda\envs\pyqt5\lib\threading.py", line 1071, in _wait_for_tstate_lock
    assert self._is_stopped
AssertionError

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33621>
_______________________________________


More information about the Python-bugs-list mailing list