]> granicus.if.org Git - python/commit
Issue #28858: Remove _PyObject_CallArg1() macro
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 5 Dec 2016 16:04:32 +0000 (17:04 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 5 Dec 2016 16:04:32 +0000 (17:04 +0100)
commit7bfb42d5b7721ca26e33050d025fec5c43c00058
treec1c91a2a34361474de2c02388c8f91d4333f2ea5
parentd77e5b7211e8daf22f2b3e0df124393bca504c38
Issue #28858: Remove _PyObject_CallArg1() macro

Replace
   _PyObject_CallArg1(func, arg)
with
   PyObject_CallFunctionObjArgs(func, arg, NULL)

Using the _PyObject_CallArg1() macro increases the usage of the C stack, which
was unexpected and unwanted. PyObject_CallFunctionObjArgs() doesn't have this
issue.
15 files changed:
Include/abstract.h
Modules/_asynciomodule.c
Modules/_collectionsmodule.c
Modules/_elementtree.c
Modules/_pickle.c
Modules/_sre.c
Modules/pyexpat.c
Objects/abstract.c
Objects/fileobject.c
Objects/genobject.c
Objects/typeobject.c
Python/_warnings.c
Python/codecs.c
Python/errors.c
Python/sysmodule.c