-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-14976: Reentrant simple queue #3346
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
9c3431b
Add queue.SimpleQueue type
pitrou 5d2f5cc
Add C version of SimpleQueue
pitrou d3e890c
Docstrings and comments
pitrou c0a087a
Simplify some code away.
pitrou fa67c79
Fix expectation in test
pitrou a58acf0
Updated generated files
pitrou 0f86f5c
Try to support --without-threads
pitrou 3d9c709
Fix EINTR-handling logic
pitrou 5620970
Merge branch 'master' of https://github.com/python/cpython into simpl…
pitrou a76c041
Add qsize(), empty() and __sizeof__()
pitrou bc07e44
Add optional block and timeout args to put(), for compatibility.
pitrou f8fe713
Add put_nowait() and get_nowait() compatibility methods
pitrou 3e1b27d
Add reentrancy tests
pitrou a250d56
Merge branch 'master' of https://github.com/python/cpython into simpl…
pitrou 3d761a8
Merge branch 'master' of https://github.com/python/cpython into simpl…
pitrou fdb5379
Try to add _queue module to Visual Studio build files
pitrou f1d731d
Try to fix compilation on MSVC
pitrou 6f66a52
Change import idiom (and fix __all__)
pitrou 8847e03
Add a test that references to items are not kept longer than they should
pitrou 1773aff
Add docs
pitrou 57e6675
Merge branch 'master' into simple_queue
pitrou 4041847
Add NEWS blurb
pitrou 16cbd05
Merge branch 'master' of https://github.com/python/cpython into simpl…
pitrou c75ccf6
Remove obsolete WITH_THREAD guard
pitrou c3aeb82
Merge branch 'master' into simple_queue
pitrou c963121
Update clinic file
pitrou 3337e24
Address review comments
pitrou 3646e99
Use Argument Clinic for __new__
pitrou 0d03ff5
Remove __sizeof__ implementation as suggested by Serhiy
pitrou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the point of the pure python version existing at all of it's raison d'être isn't possible? Even on PyPy if they took this module and haven't implemented a _queue equivalent it would do the wrong thing for code that wants to use SimpleQueue for reentrant API reasons.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know its presence is debattable, but providing a pure Python version is current policy. Besides, being reentrant is documented as an implementation detail, not an intrinsic property of the API.