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

STINNER Victor report at bugs.python.org
Wed Sep 23 12:57:45 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

> Ideally, I would prefer separate counters for different names

IMO if you want to go at the level of details, I suggest you to generate yourself thread names:

threads = [threading.Thread(name=f"MyThread-{i}") for i in range(1, 6)]

Maintaining a list of thread names sounds overkill to me. It would be quite complicated and would increase the memory footprint, for little benefit.

----------

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


More information about the Python-bugs-list mailing list