mirror of
https://github.com/python/cpython.git
synced 2025-08-28 20:56:54 +00:00
Make sure that keyword arguments are merged into the arguments dictionary when dict unpacking and keyword arguments are interleaved. (GH-20553) (GH-20569)
(cherry picked from commit db64f12e4d
)
Co-authored-by: Mark Shannon <mark@hotpy.org>
This commit is contained in:
parent
a169961dfc
commit
410b730c20
2 changed files with 21 additions and 0 deletions
|
@ -4321,6 +4321,9 @@ ex_call:
|
|||
if (!compiler_subkwargs(c, keywords, i - nseen, i)) {
|
||||
return 0;
|
||||
}
|
||||
if (have_dict) {
|
||||
ADDOP_I(c, DICT_MERGE, 1);
|
||||
}
|
||||
have_dict = 1;
|
||||
nseen = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue