Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Ideally, I would prefer separate counters for different names, and omitting a 
number for the first thread with unique name:

  doit
  doit-2
  Thread-1
  Thread-2
  print
  print-2
  doit-3

But it is not feasible. It would require supporting a cache which can grow with 
every new thread and non-trivial code to avoid race conditions. So I am fine 
with Ammar's idea.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41833>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to