]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40170: Add _PyIndex_Check() internal function (GH-19426)
authorVictor Stinner <vstinner@python.org>
Wed, 8 Apr 2020 00:01:56 +0000 (02:01 +0200)
committerGitHub <noreply@github.com>
Wed, 8 Apr 2020 00:01:56 +0000 (02:01 +0200)
commita15e260b708a98edaba86a2aa663c3f6b2abc964
treeac80e678c0266db42f8264a1fccfdeb1f58f6a17
parent45ec5b99aefa54552947049086e87ec01bc2fc9a
bpo-40170: Add _PyIndex_Check() internal function (GH-19426)

Add _PyIndex_Check() function to the internal C API: fast inlined
verson of PyIndex_Check().

Add Include/internal/pycore_abstract.h header file.

Replace PyIndex_Check() with _PyIndex_Check() in C files of Objects
and Python subdirectories.
17 files changed:
Include/internal/pycore_abstract.h [new file with mode: 0644]
Makefile.pre.in
Objects/abstract.c
Objects/bytearrayobject.c
Objects/bytes_methods.c
Objects/bytesobject.c
Objects/interpreteridobject.c
Objects/listobject.c
Objects/memoryobject.c
Objects/rangeobject.c
Objects/sliceobject.c
Objects/tupleobject.c
Objects/unicodeobject.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/ceval.c
Python/modsupport.c