Message384151
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
``` |
|
Date |
User |
Action |
Args |
2021-01-01 06:35:59 | mattip | set | recipients:
+ mattip, crazycasta |
2021-01-01 06:35:59 | mattip | set | messageid: <1609482959.01.0.808915030002.issue42752@roundup.psfhosted.org> |
2021-01-01 06:35:59 | mattip | link | issue42752 messages |
2021-01-01 06:35:58 | mattip | create | |
|