Message317430
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] |
|
Date |
User |
Action |
Args |
2018-05-23 17:39:42 | fabioz | set | recipients:
+ fabioz |
2018-05-23 17:39:42 | fabioz | set | messageid: <1527097182.41.0.682650639539.issue33621@psf.upfronthosting.co.za> |
2018-05-23 17:39:42 | fabioz | link | issue33621 messages |
2018-05-23 17:39:42 | fabioz | create | |
|