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

Commitd9a95c0

Browse files
committed
Use PyObject_New instead of PyObject_NEW
The latter is undocumented and the speed gain is negligible.Jan Urbański
1 parent4128211 commitd9a95c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/pl/plpython/plpython.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2671,7 +2671,7 @@ PLy_plan_new(void)
26712671
{
26722672
PLyPlanObject*ob;
26732673

2674-
if ((ob=PyObject_NEW(PLyPlanObject,&PLy_PlanType))==NULL)
2674+
if ((ob=PyObject_New(PLyPlanObject,&PLy_PlanType))==NULL)
26752675
returnNULL;
26762676

26772677
ob->plan=NULL;
@@ -2727,7 +2727,7 @@ PLy_result_new(void)
27272727
{
27282728
PLyResultObject*ob;
27292729

2730-
if ((ob=PyObject_NEW(PLyResultObject,&PLy_ResultType))==NULL)
2730+
if ((ob=PyObject_New(PLyResultObject,&PLy_ResultType))==NULL)
27312731
returnNULL;
27322732

27332733
/* ob->tuples = NULL; */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp