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-94808: add tests covering `PyFunction_GetKwDefaults` and `PyFunction_SetKwDefaults` by sobolevn · Pull Request #98809 · python/cpython Conversation
| |||||||||||||||
| @@ -963,6 +977,8 @@ def some(pos_only='p', zero=0, optional=None): | |||
|
|
|||
| with self.assertRaises(SystemError): | |||
| _testcapi.function_set_defaults(some, 1) # not tuple or None | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It would be good to check here that a failed set in fact did not change the defaults.
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.
Ah I see this is checked after the next failed set. But better to check every time.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
PyFunction_GetKwDefaults and PyFunction_SetKwDefaultsPyFunction_GetKwDefaults and PyFunction_SetKwDefaults
|
Thanks @sobolevn for the PR, and @iritkatriel for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @sobolevn and @iritkatriel, I could not cleanly backport this to |
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.