Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Dead code inCALL_FUNCTION_EX opcode handler #96751

Closed
Assignees
markshannon
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
@sobolevn

Description

@sobolevn

I am talking about these lines:

cpython/Python/ceval.c

Lines 4722 to 4734 ina36235d

if (!PyDict_CheckExact(kwargs)) {
PyObject*d=PyDict_New();
if (d==NULL)
gotoerror;
if (_PyDict_MergeEx(d,kwargs,2)<0) {
Py_DECREF(d);
format_kwargs_error(tstate,SECOND(),kwargs);
Py_DECREF(kwargs);
gotoerror;
}
Py_DECREF(kwargs);
kwargs=d;
}

They are not ever called, because after#18141 all** dict unpacking is handled inDICT_MERGE opcode.

This was found while working on#94808 but I think that it deserves a separate issue.

PR is on its way.

Metadata

Metadata

Assignees

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp