]> granicus.if.org Git - python/commit
bpo-35582: Argument Clinic: Optimize the "all boring objects" case. (GH-11520)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 11 Jan 2019 16:01:42 +0000 (18:01 +0200)
committerGitHub <noreply@github.com>
Fri, 11 Jan 2019 16:01:42 +0000 (18:01 +0200)
commit2a39d251f07d4c620e3b9a1848e3d1eb3067be64
tree23c1e8e63e57945fab6127d31800b7578795e14b
parent4fa9591025b6a098f3d6402e5413ee6740ede6c5
bpo-35582: Argument Clinic: Optimize the "all boring objects" case. (GH-11520)

Use _PyArg_CheckPositional() and inlined code instead of
PyArg_UnpackTuple() and _PyArg_UnpackStack() if all parameters
are positional and use the "object" converter.
30 files changed:
Lib/test/clinic.test
Modules/_io/clinic/bufferedio.c.h
Modules/_io/clinic/bytesio.c.h
Modules/_io/clinic/fileio.c.h
Modules/_io/clinic/textio.c.h
Modules/cjkcodecs/clinic/multibytecodec.c.h
Modules/clinic/_abc.c.h
Modules/clinic/_cursesmodule.c.h
Modules/clinic/_elementtree.c.h
Modules/clinic/_gdbmmodule.c.h
Modules/clinic/_heapqmodule.c.h
Modules/clinic/_operator.c.h
Modules/clinic/_pickle.c.h
Modules/clinic/_sre.c.h
Modules/clinic/itertoolsmodule.c.h
Modules/clinic/mathmodule.c.h
Modules/clinic/selectmodule.c.h
Objects/clinic/bytearrayobject.c.h
Objects/clinic/bytesobject.c.h
Objects/clinic/dictobject.c.h
Objects/clinic/enumobject.c.h
Objects/clinic/floatobject.c.h
Objects/clinic/listobject.c.h
Objects/clinic/tupleobject.c.h
Objects/clinic/unicodeobject.c.h
Python/clinic/bltinmodule.c.h
Python/clinic/context.c.h
Python/clinic/import.c.h
Python/clinic/sysmodule.c.h
Tools/clinic/clinic.py