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 — gh-160962: Fix PyInitConfig_SetStr() with NULL value by vstinner · Pull Request #161258 · python/cpython Conversation
|
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.
The fix LGTM.
The tests would be better placed in test_initconfig_get_api(), which already covers the Get* functions. test_initconfig_api is currently skipped on every build (#161270).
Also, the PyInitConfig_SetStr() doc could say that NULL is accepted for optional string options, like PyInitConfig_GetStr() does (link).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Instead, add some tests to test_initconfig_get_api().
|
@NekoAsakura: Please review the updated PR.
Oh, you're right, I completely forgot about
Oops! I approved your PR.
Done: I updated SetStr() doc to mention NULL. I also documented optional strings as |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Documentation build overview
|
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.
Thanks, LGTM. Just one comment.
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.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-161291 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-161292 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
… (#161291) gh-160962: Fix PyInitConfig_SetStr() with NULL value (GH-161258) Previously, passing NULL to an optional string option crashed. Document optional string options. Add more tests on the PyInitConfig API. (cherry picked from commit 6d69297) Co-authored-by: Victor Stinner <[email protected]>
… (#161292) gh-160962: Fix PyInitConfig_SetStr() with NULL value (GH-161258) Previously, passing NULL to an optional string option crashed. Document optional string options. Add more tests on the PyInitConfig API. (cherry picked from commit 6d69297) Co-authored-by: Victor Stinner <[email protected]>
|
I merged my PR. Thanks @NekoAsakura for your accurate review! |
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.