]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117431: Adapt bytes and bytearray .startswith() and .endswith() to Argument Clinic...
authorErlend E. Aasland <erlend@python.org>
Wed, 3 Apr 2024 11:11:14 +0000 (13:11 +0200)
committerGitHub <noreply@github.com>
Wed, 3 Apr 2024 11:11:14 +0000 (13:11 +0200)
commit595bb496b0504429cf01a76fd1ada718d9dd25ca
treed76ba21373049966c07e901852383fd4a780480e
parent1dc1521042d5e750b4a129ac8dd439edafed6783
gh-117431: Adapt bytes and bytearray .startswith() and .endswith() to Argument Clinic (#117495)

This change gives a significant speedup, as the METH_FASTCALL calling
convention is now used.
Include/internal/pycore_bytes_methods.h
Misc/NEWS.d/next/Core and Builtins/2024-04-03-09-49-15.gh-issue-117431.WAqRgc.rst [new file with mode: 0644]
Objects/bytearrayobject.c
Objects/bytes_methods.c
Objects/bytesobject.c
Objects/clinic/bytearrayobject.c.h
Objects/clinic/bytesobject.c.h