| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Thanks @ericsnowcurrently for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
Sorry, something went wrong.
…ault max_size (pythongh-135724) We weren't handling non-positive maxsize values (including the default) properly in Queue.full(). This change fixes that and adjusts an associated assert. (cherry picked from commit c5ea8e8) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
|
GH-135775 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
Sorry, @ericsnowcurrently, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker c5ea8e8e8fc725f39ed23ff6259b3cc157a0785f 3.13 |
Sorry, something went wrong.
…ault max_size (pythongh-135724) We weren't handling non-positive maxsize values (including the default) properly in Queue.full(). This change fixes that and adjusts an associated assert.
| *p_is_full = queue->items.maxsize > 0 | ||
| ? queue->items.count == queue->items.maxsize | ||
| : 0; |
There was a problem hiding this comment.
Why not write this as queue->items.count >= queue->items.maxsize?
Sorry, something went wrong.
There was a problem hiding this comment.
Yeah, that would have worked.
Sorry, something went wrong.
…ault max_size (pythongh-135724) We weren't handling non-positive maxsize values (including the default) properly in Queue.full(). This change fixes that and adjusts an associated assert.
…ault max_size (pythongh-135724) We weren't handling non-positive maxsize values (including the default) properly in Queue.full(). This change fixes that and adjusts an associated assert.
|
Reminder about backporting. @ericsnowcurrently |
Sorry, something went wrong.
|
GH-135778 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
…ault max_size (pythongh-135724) We weren't handling non-positive maxsize values (including the default) properly in Queue.full(). This change fixes that and adjusts an associated assert.
| Back | FazBrowse Home | New Git URL |
We weren't handling non-positive maxsize values (including the default) properly in Queue.full(). This change fixes that and adjusts an associated assert.