Nick Coghlan wrote:
having checks in both the producer & the consumer merely means that you'll be checking for signals twice every 65k iterations, rather than once.
Here's a possible reason for wanting checks in the producers: If your producer happens to take a long time per iteration, and the consumer only checks every 65k iterations, it might be a while before a Ctrl-C takes effect. If the producer is checking, it is likely to have a better idea of what an appropriate checking interval might be. -- Greg _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/