-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The behavior of multithreading.Queue.empty()
when the Queue is closed is not explained in the docs
#120012
Comments
marcoslimagon
changed the title
The behavior of
The behavior of Jun 4, 2024
multithreading.Queue.empty()
is not well explained multithreading.Queue.empty()
when the Queue is closed is not explained in the docs
That seems like a good change. I don't think we would typically include the error text in the docs, but the fact that it raises |
gpshead
added a commit
that referenced
this issue
Jun 13, 2024
…closed queues. (GH-120102) * improve doc for `multiprocessing.Queue.empty` * add tests for checking emptiness of queues Co-authored-by: Gregory P. Smith <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jun 13, 2024
…y` on closed queues. (pythonGH-120102) * improve doc for `multiprocessing.Queue.empty` * add tests for checking emptiness of queues (cherry picked from commit a3711af) Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Gregory P. Smith <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jun 13, 2024
…y` on closed queues. (pythonGH-120102) * improve doc for `multiprocessing.Queue.empty` * add tests for checking emptiness of queues (cherry picked from commit a3711af) Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Gregory P. Smith <[email protected]>
mrahtz
pushed a commit
to mrahtz/cpython
that referenced
this issue
Jun 30, 2024
…y` on closed queues. (pythonGH-120102) * improve doc for `multiprocessing.Queue.empty` * add tests for checking emptiness of queues Co-authored-by: Gregory P. Smith <[email protected]>
noahbkim
pushed a commit
to hudson-trading/cpython
that referenced
this issue
Jul 11, 2024
…y` on closed queues. (pythonGH-120102) * improve doc for `multiprocessing.Queue.empty` * add tests for checking emptiness of queues Co-authored-by: Gregory P. Smith <[email protected]>
This seems to have been resolved by #120102. |
hugovk
pushed a commit
that referenced
this issue
Jul 14, 2024
…ty` on closed queues. (GH-120102) (#120469) Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Gregory P. Smith <[email protected]>
hugovk
pushed a commit
that referenced
this issue
Jul 14, 2024
…ty` on closed queues. (GH-120102) (#120470) Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Gregory P. Smith <[email protected]>
@rok Thanks for checking, I've merged the backports, let's close now. |
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
…y` on closed queues. (pythonGH-120102) * improve doc for `multiprocessing.Queue.empty` * add tests for checking emptiness of queues Co-authored-by: Gregory P. Smith <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Documentation
https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Queue.empty
It should be added that in case of the given method
Queue.empty()
is called afterQueue.close()
it will raise `OSError("handle is closed")``(A clear and concise description of the issue.)
Linked PRs
multiprocessing.Queue.empty
on closed queues. #120102multiprocessing.Queue.empty
on closed queues. (GH-120102) #120469multiprocessing.Queue.empty
on closed queues. (GH-120102) #120470The text was updated successfully, but these errors were encountered: