| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Make sure that the queue maximum size is greater than or equal to 0.
|
@ericsnowcurrently: Would you mind to review my change? |
Sorry, something went wrong.
| if (maxsize < 0) { | ||
| PyErr_SetString(PyExc_ValueError, | ||
| "max_size must be greater than or equal to 0"); | ||
| return NULL; | ||
| } |
There was a problem hiding this comment.
A negative value is fine. That's the same as queue.Queue. The logic (and the assert) in _queue_is_full() is actually wrong. I'll put up a PR.
Sorry, something went wrong.
There was a problem hiding this comment.
See gh-135724.
Sorry, something went wrong.
There was a problem hiding this comment.
Oh I see! I closed my PR.
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for taking time on this!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Make sure that the queue maximum size is greater than or equal to 0.