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 serhiy.storchaka
Recipients serhiy.storchaka, vstinner
Date 2020-09-22.13:31:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1600781501.22.0.536698791906.issue41833@roundup.psfhosted.org>
In-reply-to
Content
And what if run different threads with the same target or with different targets with the same name? Would not "Thread-3" be more useful in this case?

for i in range(10):
    Thread(target=print, args=(i,)).start()

for i in range(10):
    def doit(i=i):
        print(i)
    Thread(target=doit).start()
History
Date User Action Args
2020-09-22 13:31:41serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner
2020-09-22 13:31:41serhiy.storchakasetmessageid: <1600781501.22.0.536698791906.issue41833@roundup.psfhosted.org>
2020-09-22 13:31:41serhiy.storchakalinkissue41833 messages
2020-09-22 13:31:41serhiy.storchakacreate