[New-bugs-announce] [issue33621] repr(threading._DummyThread) always fails.
Fabio Zadrozny
report at bugs.python.org
Wed May 23 13:39:42 EDT 2018
New submission from Fabio Zadrozny <fabioz at users.sourceforge.net>:
Doing the following throws an exception:
import threading
repr(threading._DummyThread())
Or, in a more contrived example (I actually had this in a QThread, so, reproducing using getting the current_thread using a thread created with the _thread module):
import threading
import traceback
finished = threading.Event()
worked = []
def method():
try:
repr(threading.current_thread())
worked.append(True)
except:
traceback.print_exc()
worked.append(False)
finally:
finished.set()
import _thread
_thread.start_new_thread(method, ())
finished.wait()
assert worked[0]
----------
components: Library (Lib)
messages: 317430
nosy: fabioz
priority: normal
severity: normal
status: open
title: repr(threading._DummyThread) always fails.
type: behavior
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33621>
_______________________________________
More information about the New-bugs-announce
mailing list