[issue34996] Add name to process and thread pool

2018-10-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for clarifying the use case. I think it's a good idea with multiple thread pools and below outputs for the program with the PR is more easier to debug than the current code. # ../backups/bpo34720.py from multiprocessing.pool import ThreadP

[issue34996] Add name to process and thread pool

2018-10-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for posting this. I think this is a good idea, will take a look at the PR later. -- ___ Python tracker ___ _

[issue34996] Add name to process and thread pool

2018-10-21 Thread Raz Manor
Raz Manor added the comment: The default name of the threads does not allow differentiation between pool threads and other threads. This problem is more notable when you have several thread pools. Also, since there are some management threads to the pool, and one might want to know which is

[issue34996] Add name to process and thread pool

2018-10-18 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: +Python 3.8 -Python 2.7, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34996] Add name to process and thread pool

2018-10-17 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Raz, 1. Please could you sign the CLA? 2. About the name, why did you use these names? Is there a discussion somewhere about the names? Thank you -- nosy: +matrixise ___ Python tracker

[issue34996] Add name to process and thread pool

2018-10-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. I think using current_thread().name gives thread name with number that is useful. I don't know the exact use case or maybe I am misunderstanding the use case and perhaps adding a script where your PR applies with the output w

[issue34996] Add name to process and thread pool

2018-10-16 Thread Raz Manor
New submission from Raz Manor : Add a human friendly names to the threads opened by multiprocessing.pool.Pool and multiprocessing.pool.ThreadPool objects. Sample usage: ThreadPool(name="ClientsPool", processes=8) -- ___ Python tracker

[issue34996] Add name to process and thread pool

2018-10-16 Thread Raz Manor
Change by Raz Manor : -- keywords: +patch pull_requests: +9268 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list m

[issue34996] Add name to process and thread pool

2018-10-16 Thread Raz Manor
Change by Raz Manor : -- components: Library (Lib) nosy: Raz Manor priority: normal severity: normal status: open title: Add name to process and thread pool type: enhancement versions: Python 2.7, Python 3.7 ___ Python tracker