GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — bpo-1635741: sqlite3 now uses Py_NewRef and Py_XNewRef by erlend-aasland · Pull Request #23170 · python/cpython Conversation
|
|
FYI, CI hangs at |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
You can ignore this known issue https://bugs.python.org/issue42142 The core dev who will merge your PR wil re-run the job. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I like node->key = Py_NewRef(key);, it looks nice.
But I'm not sure about long lines like current_param = Py_XNewRef(PyDict_GetItemWithError(parameters, binding_name_obj)); which do many things at the same line:
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Fixed in 8528bf6 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Just created https://bugs.python.org/issue42287, then saw this PR, good work :) This I believe that such changes, when applied correctly (that is, if you did not change code semantics), should result in an identical binary. So a simple check to ensure you haven't broken anything would be to compare the final build before & after. P.S make sure to strip debug info, because it does change (line numbers, ...) @vstinner I think this PR (and future PRs regarding this conversion) do not require a news entry, right? because they do not introduce any user-facing change, only code enhancement and refactoring. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@vstinner Would you like further changes, or are you fine with this PR as it stands? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@vstinner FYI, synced with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.