mirror of
https://github.com/python/cpython.git
synced 2025-08-29 21:25:01 +00:00
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.
This commit is contained in:
parent
65524ab388
commit
444156ede4
4 changed files with 149 additions and 49 deletions
|
@ -1513,9 +1513,9 @@ class StringLikeTest(BaseTest):
|
|||
x, None, None, None)
|
||||
self.assertRaisesRegex(TypeError, r'^count\(', s.count,
|
||||
x, None, None, None)
|
||||
self.assertRaisesRegex(TypeError, r'^startswith\(', s.startswith,
|
||||
self.assertRaisesRegex(TypeError, r'^startswith\b', s.startswith,
|
||||
x, None, None, None)
|
||||
self.assertRaisesRegex(TypeError, r'^endswith\(', s.endswith,
|
||||
self.assertRaisesRegex(TypeError, r'^endswith\b', s.endswith,
|
||||
x, None, None, None)
|
||||
|
||||
# issue #15534
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue