Message281032
In Py3.6, it raises error:
>>> next((pool.imap(str, gen())))
Traceback (most recent call last):
File "/opt/lib/python3.7/multiprocessing/pool.py", line 684, in next
item = self._items.popleft()
IndexError: pop from an empty deque
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/lib/python3.7/multiprocessing/pool.py", line 690, in next
item = self._items.popleft()
IndexError: pop from an empty deque
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/lib/python3.7/multiprocessing/pool.py", line 693, in next
raise StopIteration
StopIteration
But this doesn't looks good. I think it should raise TypeError. It can be fixed in #28699. |
|
Date |
User |
Action |
Args |
2016-11-17 10:46:36 | xiang.zhang | set | recipients:
+ xiang.zhang, davin, lev-veshnyakov |
2016-11-17 10:46:36 | xiang.zhang | set | messageid: <1479379596.96.0.0566294009273.issue28696@psf.upfronthosting.co.za> |
2016-11-17 10:46:36 | xiang.zhang | link | issue28696 messages |
2016-11-17 10:46:36 | xiang.zhang | create | |
|