Uh oh!
There was an error while loading. Please reload this page.
gh-118814: Fix the TypeVar constructor when name is passed by keyword - #122664
Conversation
…eyword Fix _PyArg_UnpackKeywordsWithVararg for the case when argument for positional-or-keyword parameter is passed by keyword. There was only one such case in the stdlib -- the TypeVar constructor.
picnixz
commented
Aug 4, 2024
I think I also tried that approach but got a segfault with the example I showed. Could you check whether I may have missed something (or did something incorrect?): vararg_with_many_argsa: objectb: objectc: objectd: object*args: objecte: boolf: bool=Falseg: bool=Falseand test:
|
serhiy-storchaka
commented
Aug 4, 2024
Oh, yes. There are several more bugs in Argument Clinic. |
serhiy-storchaka
commented
Aug 5, 2024
But they are only Argument Clinic bugs and not related to this issue. |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
…ed by keyword (pythonGH-122664) Fix _PyArg_UnpackKeywordsWithVararg for the case when argument for positional-or-keyword parameter is passed by keyword. There was only one such case in the stdlib -- the TypeVar constructor. (cherry picked from commit 540fcc6) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-122806 is a backport of this pull request to the 3.13 branch. |
…ed by keyword (pythonGH-122664) Fix _PyArg_UnpackKeywordsWithVararg for the case when argument for positional-or-keyword parameter is passed by keyword. There was only one such case in the stdlib -- the TypeVar constructor. (cherry picked from commit 540fcc6) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-122807 is a backport of this pull request to the 3.12 branch. |
erlend-aasland
left a comment
There was a problem hiding this comment.
Thanks for fixing this!
…eyword (pythonGH-122664) Fix _PyArg_UnpackKeywordsWithVararg for the case when argument for positional-or-keyword parameter is passed by keyword. There was only one such case in the stdlib -- the TypeVar constructor.
Fix _PyArg_UnpackKeywordsWithVararg for the case when argument for positional-or-keyword parameter is passed by keyword. There was only one such case in the stdlib -- the TypeVar constructor.