]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117431: Adapt str.startswith and str.endswith to Argument Clinic (#117466)
authorErlend E. Aasland <erlend@python.org>
Wed, 3 Apr 2024 07:11:39 +0000 (09:11 +0200)
committerGitHub <noreply@github.com>
Wed, 3 Apr 2024 07:11:39 +0000 (09:11 +0200)
commit444156ede44204ef16c9d3cfcb03a637535fd5bf
treebfaf62af52402c60451346130a28501dd34eca5b
parent65524ab38875bb0b89fb499531bb772a4fb45b01
gh-117431: Adapt str.startswith and str.endswith to Argument Clinic (#117466)

This change gives a significant speedup, as the METH_FASTCALL calling
convention is now used.
Lib/test/string_tests.py
Misc/NEWS.d/next/Core and Builtins/2024-04-02-17-37-35.gh-issue-117431.vDKAOn.rst [new file with mode: 0644]
Objects/clinic/unicodeobject.c.h
Objects/unicodeobject.c