[docs] [issue29284] Include thread_name_prefix in the concurrent.futures.ThreadPoolExecutor example

John Taylor report at bugs.python.org
Sun Jan 22 07:51:17 EST 2017

John Taylor added the comment:

I have updated the Python 3.6 example for 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?

Added file: http://bugs.python.org/file46377/ThreadPoolExec_Example.py

Python tracker <report at bugs.python.org>

More information about the docs mailing list