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 anthonygreen
Recipients anthonygreen, docs@python, pitrou
Date 2015-12-08.00:09:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449533377.75.0.642566069211.issue25821@psf.upfronthosting.co.za>
In-reply-to
Content
The following example comes from IRC user ztane:

> import threading, time
>
> main_thread = threading.current_thread()
> 
> def foo():
>     time.sleep(10)
>     print(main_thread.is_alive())
>     print(list(threading.enumerate()))
> 
> t = threading.Thread(target=foo)
> t.start()

False
[<_MainThread(MainThread, stopped 140040101766976)>, <Thread(Thread-1, started 140040068695808)>]
History
Date User Action Args
2015-12-08 00:09:37anthonygreensetrecipients: + anthonygreen, pitrou, docs@python
2015-12-08 00:09:37anthonygreensetmessageid: <1449533377.75.0.642566069211.issue25821@psf.upfronthosting.co.za>
2015-12-08 00:09:37anthonygreenlinkissue25821 messages
2015-12-08 00:09:37anthonygreencreate