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.

Author xiang.zhang
Recipients davin, lev-veshnyakov, xiang.zhang
Date 2016-11-17.10:46:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479379596.96.0.0566294009273.issue28696@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-11-17 10:46:36xiang.zhangsetrecipients: + xiang.zhang, davin, lev-veshnyakov
2016-11-17 10:46:36xiang.zhangsetmessageid: <1479379596.96.0.0566294009273.issue28696@psf.upfronthosting.co.za>
2016-11-17 10:46:36xiang.zhanglinkissue28696 messages
2016-11-17 10:46:36xiang.zhangcreate