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

Redundant NULL check in profile_trampoline function (sysmodule.c) #96715

Closed
Assignees
pablogsal
@chgnrdv

Description

@chgnrdv

Code inprofile_trampoline function checks ifarg argument value is equal toNULL and in this case assignsPy_None to it

if (arg==NULL) {
arg=Py_None;
}

The only place wherearg is used inprofile_trampoline is this call
PyObject*result=call_trampoline(tstate,self,frame,what,arg);

But similar check is already done bycall_trampoline function
stack[2]= (arg!=NULL) ?arg :Py_None;

My suggestion is to remove excess check fromprofile_trampoline.

Linked PRs

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp