]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Avoid inefficient way to call functions without argument
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 6 Sep 2016 00:53:15 +0000 (17:53 -0700)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 6 Sep 2016 00:53:15 +0000 (17:53 -0700)
commitad8c83ad6b91bebbc124c0c36e67b9836ca3d90f
tree18c2f0bdd40db2aa568b9e4a5f87d2f88ff70059
parentca08301ae0cc5e4e7b57e2283542815efbff86bb
Avoid inefficient way to call functions without argument

Don't pass "()" format to PyObject_CallXXX() to call a function without
argument: pass NULL as the format string instead. It avoids to have to parse a
string to produce 0 argument.
Modules/_collectionsmodule.c
Modules/_datetimemodule.c
Modules/_pickle.c
Objects/typeobject.c
Python/modsupport.c