gh-118814: Fix the TypeVar constructor when name is passed by keyword#122664
gh-118814: Fix the TypeVar constructor when name is passed by keyword#122664serhiy-storchaka merged 2 commits intopython:mainfrom
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.
|
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_args
a: object
b: object
c: object
d: object
*args: object
e: bool
f: bool = False
g: bool = Falseand test:
|
|
Oh, yes. There are several more bugs in Argument Clinic. |
|
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.