]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39245: Switch to public API for Vectorcall (GH-18460)
authorPetr Viktorin <encukou@gmail.com>
Tue, 11 Feb 2020 16:46:57 +0000 (17:46 +0100)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2020 16:46:57 +0000 (17:46 +0100)
commitffd9753a944916ced659b2c77aebe66a6c9fbab5
treef3469bdca81c102afa811a39dd3eaa9643287e93
parentf3e7ea5b8c220cd63101e419d529c8563f9c6115
bpo-39245: Switch to public API for Vectorcall (GH-18460)

The bulk of this patch was generated automatically with:

    for name in \
        PyObject_Vectorcall \
        Py_TPFLAGS_HAVE_VECTORCALL \
        PyObject_VectorcallMethod \
        PyVectorcall_Function \
        PyObject_CallOneArg \
        PyObject_CallMethodNoArgs \
        PyObject_CallMethodOneArg \
    ;
    do
        echo $name
        git grep -lwz _$name | xargs -0 sed -i "s/\b_$name\b/$name/g"
    done

    old=_PyObject_FastCallDict
    new=PyObject_VectorcallDict
    git grep -lwz $old | xargs -0 sed -i "s/\b$old\b/$new/g"

and then cleaned up:

- Revert changes to in docs & news
- Revert changes to backcompat defines in headers
- Nudge misaligned comments
56 files changed:
Include/cpython/abstract.h
Lib/test/test_call.py
Modules/_asynciomodule.c
Modules/_collectionsmodule.c
Modules/_csv.c
Modules/_ctypes/callproc.c
Modules/_elementtree.c
Modules/_functoolsmodule.c
Modules/_io/bufferedio.c
Modules/_io/iobase.c
Modules/_io/stringio.c
Modules/_io/textio.c
Modules/_json.c
Modules/_operator.c
Modules/_pickle.c
Modules/_posixsubprocess.c
Modules/_randommodule.c
Modules/_sqlite/cache.c
Modules/_sqlite/connection.c
Modules/_sqlite/cursor.c
Modules/_sqlite/microprotocols.c
Modules/_sre.c
Modules/_struct.c
Modules/_testcapimodule.c
Modules/_xxtestfuzz/fuzzer.c
Modules/cjkcodecs/cjkcodecs.h
Modules/cjkcodecs/multibytecodec.c
Modules/gcmodule.c
Modules/itertoolsmodule.c
Modules/pyexpat.c
Objects/abstract.c
Objects/bytearrayobject.c
Objects/bytesobject.c
Objects/call.c
Objects/classobject.c
Objects/descrobject.c
Objects/dictobject.c
Objects/fileobject.c
Objects/floatobject.c
Objects/funcobject.c
Objects/genobject.c
Objects/listobject.c
Objects/longobject.c
Objects/memoryobject.c
Objects/methodobject.c
Objects/moduleobject.c
Objects/typeobject.c
Objects/unicodeobject.c
Objects/weakrefobject.c
Python/_warnings.c
Python/bltinmodule.c
Python/ceval.c
Python/codecs.c
Python/errors.c
Python/import.c
Python/sysmodule.c