mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
[3.8] bpo-36974: separate vectorcall functions for each calling convention (GH-13781) (#14782)
This commit is contained in:
parent
5dab5e7d24
commit
bf8e82f976
10 changed files with 388 additions and 117 deletions
|
@ -850,10 +850,10 @@ id(42)
|
|||
# called, so test a variety of calling conventions.
|
||||
for py_name, py_args, c_name, expected_frame_number in (
|
||||
('gmtime', '', 'time_gmtime', 1), # METH_VARARGS
|
||||
('len', '[]', 'builtin_len', 2), # METH_O
|
||||
('locals', '', 'builtin_locals', 2), # METH_NOARGS
|
||||
('iter', '[]', 'builtin_iter', 2), # METH_FASTCALL
|
||||
('sorted', '[]', 'builtin_sorted', 2), # METH_FASTCALL|METH_KEYWORDS
|
||||
('len', '[]', 'builtin_len', 1), # METH_O
|
||||
('locals', '', 'builtin_locals', 1), # METH_NOARGS
|
||||
('iter', '[]', 'builtin_iter', 1), # METH_FASTCALL
|
||||
('sorted', '[]', 'builtin_sorted', 1), # METH_FASTCALL|METH_KEYWORDS
|
||||
):
|
||||
with self.subTest(c_name):
|
||||
cmd = ('from time import gmtime\n' # (not always needed)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue