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 njatkinson
Recipients njatkinson
Date 2018-06-06.02:00:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528250405.09.0.592728768989.issue33777@psf.upfronthosting.co.za>
In-reply-to
Content
Here's what I expect to happen (Python2 behavior):


Python 2.7.14+ (default, Dec  5 2017, 15:17:02)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from dummy_threading import Thread
>>> def f(): print 'foo'
...
>>> t = Thread(target=f)
>>> t.start()
foo
>>> t.is_alive()
False
>>>




Here's what actually happens (Python3.6):


Python 3.6.4 (default, Jan  5 2018, 02:13:53)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from dummy_threading import Thread
>>> def f(): print('foo')
...
>>> t = Thread(target=f)
>>> t.start()
foo
>>> t.is_alive()
True
>>>



After completion of the target function, I would expect .is_alive() to return False for an instance of dummy_thread.Thread. Instead, it returns True until the .join() method of the instance of dummy_thread.Thread is called.
History
Date User Action Args
2018-06-06 02:00:05njatkinsonsetrecipients: + njatkinson
2018-06-06 02:00:05njatkinsonsetmessageid: <1528250405.09.0.592728768989.issue33777@psf.upfronthosting.co.za>
2018-06-06 02:00:05njatkinsonlinkissue33777 messages
2018-06-06 02:00:04njatkinsoncreate