[issue35034] Add closing and iteration to threading.Queue

2018-11-09 Thread Vladimir Filipović
Vladimir Filipović added the comment: Hi Raymond! Thanks for the attention you've given this and for the words of encouragement. I'll try to make something like this for PyPI. I do feel I should critique your metaphor of Queues as email. (Please don't take this as a request to re-evaluate

[issue35034] Add closing and iteration to threading.Queue

2018-11-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've put some more thought into this and have discussed it with another core developer. While the idea was inspired, I think we should decline the API expansion. When I last talked with Guido about this module, he opined that he didn't want to module

[issue35034] Add closing and iteration to threading.Queue

2018-10-30 Thread Vladimir Filipović
Vladimir Filipović added the comment: Hi Raymond! I've posted to python-ideas: https://mail.python.org/pipermail/python-ideas/2018-October/054238.html The amount of attention it got was modest, so I couldn't exactly say the community has thoroughly vetted and enthusiastically endorsed this

[issue35034] Add closing and iteration to threading.Queue

2018-10-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Note we already have the task_done() / join() API to handle the common case of notification for when work is done. At one point, Guido opined that he didn't want the queue module to go any further into the world of task management (because it is beyond

[issue35034] Add closing and iteration to threading.Queue

2018-10-20 Thread Vladimir Filipović
Change by Vladimir Filipović : -- keywords: +patch, patch, patch, patch pull_requests: +9354, 9355, 9356, 9357 stage: -> patch review ___ Python tracker ___

[issue35034] Add closing and iteration to threading.Queue

2018-10-20 Thread Vladimir Filipović
Change by Vladimir Filipović : -- keywords: +patch, patch, patch pull_requests: +9354, 9355, 9357 stage: -> patch review ___ Python tracker ___

[issue35034] Add closing and iteration to threading.Queue

2018-10-20 Thread Vladimir Filipović
Change by Vladimir Filipović : -- keywords: +patch, patch pull_requests: +9354, 9355 stage: -> patch review ___ Python tracker ___

[issue35034] Add closing and iteration to threading.Queue

2018-10-20 Thread Vladimir Filipović
Change by Vladimir Filipović : -- keywords: +patch pull_requests: +9354 stage: -> patch review ___ Python tracker ___ ___

[issue35034] Add closing and iteration to threading.Queue

2018-10-20 Thread Vladimir Filipović
New submission from Vladimir Filipović : Code using threading.Queue often needs to coordinate a "work is finished as far as far as I care" state between the producing and consuming side. When going from the producer to the consumer ("No more items after this, so don't bother waiting"), this