This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author fabioz
Recipients fabioz
Date 2018-05-23.17:39:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527097182.41.0.682650639539.issue33621@psf.upfronthosting.co.za>
In-reply-to
Content
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]
History
Date User Action Args
2018-05-23 17:39:42fabiozsetrecipients: + fabioz
2018-05-23 17:39:42fabiozsetmessageid: <1527097182.41.0.682650639539.issue33621@psf.upfronthosting.co.za>
2018-05-23 17:39:42fabiozlinkissue33621 messages
2018-05-23 17:39:42fabiozcreate