[issue41833] threading.Thread: use target name if the name parameter is omitted

Serhiy Storchaka report at bugs.python.org
Tue Sep 22 09:31:41 EDT 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

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()

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41833>
_______________________________________


More information about the Python-bugs-list mailing list