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 asvetlov
Recipients Martin.Teichmann, asvetlov, cjrh, yselivanov
Date 2019-11-21.20:02:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574366552.24.0.218367366938.issue37334@roundup.psfhosted.org>
In-reply-to
Content
1. Suppose we have 2 concurrent producers, a single queue and a consumer.
2. The first producer puts several items into the queue and then calls q.close()
3. The second producer also puts several items. It doesn't matter the second producer closes the queue at the end or not.
4. The consumer gets items from the queue and prints them.

What items are printed and what are canceled/skipped? With the proposed PR it depends on timings of putting and getting data items and the queue size. 
The output can vary from zero to all pushed data.
That's why I think that the idea is not reliable.
History
Date User Action Args
2019-11-21 20:02:32asvetlovsetrecipients: + asvetlov, cjrh, yselivanov, Martin.Teichmann
2019-11-21 20:02:32asvetlovsetmessageid: <1574366552.24.0.218367366938.issue37334@roundup.psfhosted.org>
2019-11-21 20:02:32asvetlovlinkissue37334 messages
2019-11-21 20:02:32asvetlovcreate