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.

classification
Title: Include thread_name_prefix in the concurrent.futures.ThreadPoolExecutor example 17.4.2.1
Type: enhancement Stage: needs patch
Components: Documentation Versions: Python 3.8, Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Mariatta Nosy List: Mariatta, cheryl.sabella, davin, docs@python, gregory.p.smith, jftuga
Priority: normal Keywords:

Created on 2017-01-16 16:42 by jftuga, last changed 2022-04-11 14:58 by admin.

Files
File name Uploaded Description Edit
ThreadPoolExec_Example.py jftuga, 2017-01-22 12:51
Messages (6)
msg285572 - (view) Author: John Taylor (jftuga) * Date: 2017-01-16 16:42
Please include how to use the thread_name_prefix method argument (new to Python 3.6) in the example: 17.4.2.1. ThreadPoolExecutor Example
msg286006 - (view) Author: John Taylor (jftuga) * Date: 2017-01-22 12:51
I have updated the Python 3.6 example for 17.4.2.1. ThreadPoolExecutor Example.  Please see the attachment.  On my system this is the output:

thread name: loader_0
thread name: loader_1
thread name: loader_2
thread name: loader_3
thread name: loader_4
'http://example.com/' page is 1270 bytes
'http://www.foxnews.com/' page is 67351 bytes
'http://www.cnn.com/' page is 137164 bytes
'http://europe.wsj.com/' page is 914169 bytes
'http://www.bbc.co.uk/' page is 229503 bytes

Could you please consider adding this to the official documentation?
msg291605 - (view) Author: John Taylor (jftuga) * Date: 2017-04-13 12:17
Can this be added to Python 3.7?

https://docs.python.org/3.7/library/concurrent.futures.html#threadpoolexecutor-example

Thanks.
msg298733 - (view) Author: John Taylor (jftuga) * Date: 2017-07-20 16:33
Bump
msg298748 - (view) Author: Cheryl Sabella (cheryl.sabella) * (Python committer) Date: 2017-07-20 20:22
Hi John,

Would you be able to make a GitHub pull request for your change?  Since CPython development has moved to GitHub, you may have a better chance of a review with a PR.
msg339854 - (view) Author: Cheryl Sabella (cheryl.sabella) * (Python committer) Date: 2019-04-10 12:08
This seems like a reasonable request.  A description of `thread_name_prefix` should probably also be added to the body of the class description instead of just in the versionadded directive.

Assigning to @Mariatta for the sprints.

Nosying @gregory.p.smith as he added the parameter in issue 27664.
History
Date User Action Args
2022-04-11 14:58:42adminsetgithub: 73470
2019-04-10 12:08:39cheryl.sabellasetversions: + Python 3.7, Python 3.8, - Python 3.6
nosy: + Mariatta, gregory.p.smith

messages: + msg339854

assignee: docs@python -> Mariatta
stage: needs patch
2017-07-20 20:22:26cheryl.sabellasetnosy: + cheryl.sabella
messages: + msg298748
2017-07-20 16:33:26jftugasetmessages: + msg298733
2017-04-13 12:17:56jftugasetmessages: + msg291605
2017-01-22 22:20:26davinsetnosy: + davin
2017-01-22 12:51:17jftugasetfiles: + ThreadPoolExec_Example.py

messages: + msg286006
2017-01-16 16:42:44jftugacreate