gh-107906 Remove unused maxsize argument from _init method of queue.Queue#107907
gh-107906 Remove unused maxsize argument from _init method of queue.Queue#107907shailshouryya wants to merge 4 commits intopython:mainfrom
maxsize argument from _init method of queue.Queue#107907Conversation
This is a technical debt refactor associated with the changes in commit da3caed; jump to python@da3caed#diff-6434ffe17438de87d16e80921b320604b05d155909faabf9ad93e86ff68feac3L192
|
I think this PR could skip the news entry since this is just a refactoring change - or would this still need an entry? |
|
This shouldn't have broken anything, but |
|
Update: it looks like the failure I linked to above wasn't actually a failure in the |
|
It looks like Lines 229 to 232 in ee40b3e and Lines 245 to 248 in ee40b3e inherited this |
|
I think you should also take care of |
|
Following commit e5094ab, all tests except for the Hypothesis tests on Ubuntu GitHub Action job now pass. I'm not sure why this specific test is failing, since the error message points to Lines 34 to 36 in ee40b3e ... but commits bacae73 and e5094ab should address this. I also tried looking through the raw logs of the GitHub Action job, but nothing obvious seemed to pop out to me suggesting the test failed to build properly, which I initially suspected to be causing the test failure. (I'm not familiar with the build process for the GitHub Action jobs, though, so I might have missed something.) |
This needs a news entry because it's changing code which is potentially used. (There's discussion in the issue whether this change should be made.) |
|
Closing for the reasons listed in the associated issue. This is an unnecessary breaking change that overrides the intentional design decision of the original author (Guido). |
|
Ok, so I am here after #107906 (comment), and this is little more helpful but still not fully clear to me. I look to https://github.com/python/cpython/commits/ee40b3e20d9b8d62a9b36b777dff42db1e9049d5/Lib/queue.py then https://github.com/python/cpython/commits/f260e443ac07bc794fc9409096679b94528868e2/Lib/Queue.py?browsing_rename_history=true&new_path=Lib/queue.py&original_branch=ee40b3e20d9b8d62a9b36b777dff42db1e9049d5 and find this 9022fce. In 9022fce I see and then look at which to me makes sense so far. However, when I look at the current code https://github.com/python/cpython/blob/ee40b3e20d9b8d62a9b36b777dff42db1e9049d5/Lib/queue.py, I see so the code today no longer do anything with maxsize inside of _init since init now do the itself. After all this, I am confused about:
I think I may be looking in something wrong again, so @gvanrossum can you please make explanation if you have some time? It is probably that I should be looking somewhere else and the explanation is obvious, but a newbie like me is having trouble finding it. Also @shailshouryya I just read about some |
|
I'm sorry @brandonardenwalli, it looks like you need more mentoring than I can provide. This issue has absolutely nothing to do with the question I answered previously, so my conclusion is that you're likely just flailing. Sorry. FWIW the |
|
Ok, thanks for the reply! By the way, when you say this is not related to "question I answered previously" you are referring to the issue from yesterday about the issue of Tier 2 interpreters? Just making double check to make sure.
Ok, I think that is useful enough. Thank you! |
|
Yes that question. Which you started by quoting. And I don’t recall answering any other questions from you. |
|
Thanks for linking that Best of luck, and have fun :) |
Closes #107906
See message in commit bacae73 for details.
maxsizeargument in_initmethod ofqueue.Queue#107906