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 tim.peters
Recipients beruhan, davin, eamanu, pitrou, tim.peters
Date 2018-12-29.16:00:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1546099239.54.0.358109265391.issue35608@roundup.psfhosted.org>
In-reply-to
Content
Antoine, alas, it's subtler than that.  The worker process (process_func()) puts _another_ `StopIteration` on the input queue in its `finally` clause.  So the first worker process to finish adds back a sentinel for the next worker to see, and so on.  At the end, one StopIteration is left on input_queue (added by the last worker to finish).

Everything shuts down cleanly for me on 64-bit Win10 Py 3.7.2 no matter what input I tried, so I can't reproduce.

The OP really needs to identify _where_ it's hanging, and when (after all input has been read?  somewhere "random in the middle"? ...), and if at all possible supply an input on which it does hang.

The OP should also try 3.7.2.
History
Date User Action Args
2018-12-29 16:00:41tim.peterssetrecipients: + tim.peters, pitrou, davin, eamanu, beruhan
2018-12-29 16:00:39tim.peterssetmessageid: <1546099239.54.0.358109265391.issue35608@roundup.psfhosted.org>
2018-12-29 16:00:39tim.peterslinkissue35608 messages
2018-12-29 16:00:39tim.peterscreate