]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117431: Adapt str.find and friends to Argument Clinic (#117468)
authorErlend E. Aasland <erlend@python.org>
Wed, 3 Apr 2024 15:59:18 +0000 (17:59 +0200)
committerGitHub <noreply@github.com>
Wed, 3 Apr 2024 15:59:18 +0000 (17:59 +0200)
commit7ecd55d604a8fa287c1d131cac14d10260be826b
treea8721273e64712418b9714b45c5d6b766e813b2e
parent345194de8cb3ceaa40d19353d30ba6e23b6e6edb
gh-117431: Adapt str.find and friends to Argument Clinic (#117468)

This change gives a significant speedup, as the METH_FASTCALL calling
convention is now used. The following methods are adapted:

- str.count
- str.find
- str.index
- str.rfind
- str.rindex
Lib/test/string_tests.py
Misc/NEWS.d/next/Core and Builtins/2024-04-02-17-37-35.gh-issue-117431.vDKAOn.rst
Objects/clinic/unicodeobject.c.h
Objects/unicodeobject.c