ThreadPoolExecutor(max_workers=None) throws exception when it should not. Inconsistent with 3.4 documentation. If max_workers=None, then it should use the amount of cpus as threadcount.
Thanks for the report. 3.4 is in security fixes only mode and will reach end of life soon. This seems to be a backport of the change in 3.5 that won't be accepted. Since the feature is available in 3.5+ I would recommend upgrading to 3.5 and above and to close this issue.
Please use the correct documentation version for Python 3.4. https://docs.python.org/3.4/library/concurrent.futures.html doesn't mention the pool size auto-selection. The feature was added in Python 3.5 only. Also, Python 3.4 reached the end-of-life, this version is not supported anymore.
History
Date
User
Action
Args
2022-04-11 14:59:11
admin
set
github: 80268
2019-02-23 10:22:12
asvetlov
set
status: open -> closedtype: crash -> enhancementnosy: + asvetlovmessages: + resolution: not a bugstage: patch review -> resolved