[issue21362] concurrent.futures does not validate that max_workers is proper

Claudiu.Popa report at bugs.python.org
Sun Apr 27 13:41:04 CEST 2014


Claudiu.Popa added the comment:

For instance, multiprocessing behaves like this:

>>> multiprocessing.Pool(-1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python34\lib\multiprocessing\context.py", line 118, in Pool
    context=self.get_context())
  File "C:\Python34\lib\multiprocessing\pool.py", line 157, in __init__
    raise ValueError("Number of processes must be at least 1")
ValueError: Number of processes must be at least 1
>>>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21362>
_______________________________________


More information about the Python-bugs-list mailing list