New submission from Fabio Zadrozny <fab...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue33621> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com