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 mattip
Recipients crazycasta, mattip
Date 2021-01-01.06:35:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609482959.01.0.808915030002.issue42752@roundup.psfhosted.org>
In-reply-to
Content
Just to be clear, here is the code from the test (how do you format a code block here?) that demonstrates the writer is not closed when nothing is put into the queue

```
$ python3
Python 3.8.6 | packaged by conda-forge | (default, Oct  7 2020, 19:08:05) 
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing
>>> q = multiprocessing.Queue()
>>> q.close()
>>> q.join_thread()
>>> q._reader.closed
True
>>> q._writer.closed
False
>>> 

```
And the changed behaviour to close the writer if the queue is used

```
>>> q = multiprocessing.Queue()
>>> q.put(1)
>>> q.get()
1
>>> q.close()
>>> q.join_thread()
>>> q._reader.closed
True
>>> q._writer.closed
True

```
History
Date User Action Args
2021-01-01 06:35:59mattipsetrecipients: + mattip, crazycasta
2021-01-01 06:35:59mattipsetmessageid: <1609482959.01.0.808915030002.issue42752@roundup.psfhosted.org>
2021-01-01 06:35:59mattiplinkissue42752 messages
2021-01-01 06:35:58mattipcreate