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 xdegaye
Recipients xdegaye
Date 2015-03-24.20:20:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427228409.82.0.424611775358.issue23768@psf.upfronthosting.co.za>
In-reply-to
Content
The following 'thread_repr.py' script:
--------------------------------------

import threading, atexit

def foo():
    print(threading.currentThread())

atexit.register(foo)



gives the following output:
---------------------------

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "thread_repr.py", line 4, in foo
    print(threading.currentThread())
  File "/usr/local/lib/python3.5/threading.py", line 826, in __repr__
    self.is_alive() # easy way to get ._is_stopped set when appropriate
  File "/usr/local/lib/python3.5/threading.py", line 1122, in is_alive
    self._wait_for_tstate_lock(False)
  File "/usr/local/lib/python3.5/threading.py", line 1078, in _wait_for_tstate_lock
    assert self._is_stopped
AssertionError
History
Date User Action Args
2015-03-24 20:20:09xdegayesetrecipients: + xdegaye
2015-03-24 20:20:09xdegayesetmessageid: <1427228409.82.0.424611775358.issue23768@psf.upfronthosting.co.za>
2015-03-24 20:20:09xdegayelinkissue23768 messages
2015-03-24 20:20:09xdegayecreate