이광효 and Jeong YunWon
a8e4bde885
Reject unsupported native keywords before argument binding ( #8957 )
...
* Reject unsupported native keywords before argument binding
Add explicit keyword dispatch metadata independently of inferred Rust
calling flags. Reject nonempty keywords before binding and conversion,
while preserving descriptor self checks and keyword-capable calls.
Annotate 31 builtins and list.append/list.clear, derive C-API policies
from ml_flags, and group dynamic registration metadata in MethodDefSpec.
Add regression coverage and remove the id doctest expected-failure marker.
Validation: workspace and C-API tests/clippy, VM without doc, keyword
regressions, and test_call/test_extcall/test_builtin/test_list passed.
The full snippet suite had 475 passes and 7 failures: six CPython-side
expectation mismatches and one missing optional SQLite module.
Assisted-by: Codex:GPT-6
* Infer native keyword dispatch from argument metadata
Replace no_keywords annotations with registration-time inference from
FromArgs::PARAMS, including nested parameter metadata. Forward arguments
with keyword-capable parameters to the binder, preserving min/max body
validation and descriptor self checks.
Add regressions for raw arguments, keyword argument structs, and list.sort.
Tested: C-API tests, workspace and C-API Clippy, VM without doc, both keyword
regression snippets, and test_call/test_extcall/test_builtin/test_list.
Workspace tests reported eight _opcode snapshot failures. The full snippet
suite reported 477 passes and seven failures: six CPython-side failures
and one RustPython failure due to the missing optional SQLite module.
Assisted-by: Codex:GPT-6
* Simplify native function registration metadata
Reuse SimpleItemMeta for pyfunction attributes and remove FunctionItemMeta.
Remove MethodDefSpec and restore the original new_method_def arguments
with an additional keyword_dispatch parameter, updating its callers.
Consolidate keyword dispatch regressions in syntax_function_args.py,
preserving their assertions and placing them before builtin shadowing.
Validation: workspace and C-API tests/clippy, VM without doc, the combined
snippet, and test_extcall/test_builtin/test_list/test_call passed.
The full snippet suite reported 477 passes and seven existing failures:
six CPython-side failures and one missing optional SQLite module.
Assisted-by: Codex:GPT-6
* Reject native keywords by calling convention flags
Remove `KeywordDispatch`, the `keyword_dispatch` field of `PyMethodDef`,
`PyMethodDef::with_keyword_dispatch`, `function::keyword_dispatch` and
the derive macros' `keyword_dispatch_tokens`. Native functions and method
descriptors reject nonempty keywords when `flags` lacks `KEYWORDS`, and
report the unqualified name when `flags` contains `VARARGS`.
`Context::new_method_def` takes `(name, f, flags, doc)` again. Add a
snippet for `int.__new__` called with a keyword argument.
Assisted-by: Claude Code:claude-opus-5-5
---------
Co-authored-by: Jeong YunWon <jeong@youknowone.org >
2026-10-10 00:49:44 +09:00
..
2025-08-01 22:39:00 +09:00
2026-02-17 21:33:54 +09:00
2026-03-01 11:36:46 +09:00
2026-02-15 14:30:45 +09:00
2025-08-04 20:08:17 +09:00
2025-08-23 19:45:53 +03:00
2025-07-25 19:04:49 +09:00
2025-08-23 19:45:53 +03:00
2022-08-15 16:09:32 +09:00
2026-06-15 11:19:01 +09:00
2026-01-13 22:05:32 +09:00
2026-01-21 20:44:26 +09:00
2025-08-24 10:36:07 +03:00
2026-08-22 20:56:18 +09:00
2026-08-25 22:01:24 +09:00
2026-09-21 20:53:53 +09:00
2026-09-30 02:16:15 +09:00
2026-05-17 20:54:56 +09:00
2026-09-24 12:21:26 +09:00
2026-09-26 10:39:04 +09:00
2026-08-31 15:44:55 +09:00
2026-08-20 12:47:36 +09:00
2026-10-02 09:25:33 +09:00
2026-09-21 20:53:53 +09:00
2026-09-29 11:45:11 +09:00
2026-10-08 08:11:26 +09:00
2026-07-15 23:36:43 +09:00
2026-09-20 10:34:09 +09:00
2026-09-20 06:43:30 +09:00
2026-09-20 10:34:09 +09:00
2026-02-13 22:15:19 +09:00
2026-05-19 13:20:00 +09:00
2026-09-29 21:11:06 +09:00
2026-09-30 02:16:15 +09:00
2026-10-08 08:11:26 +09:00
2026-08-25 22:01:24 +09:00
2026-06-15 11:20:13 +09:00
2026-05-19 13:20:00 +09:00
2026-09-24 20:53:28 +09:00
2026-09-24 12:21:26 +09:00
2026-09-24 12:21:26 +09:00
2026-10-01 11:32:32 +09:00
2026-01-30 19:24:33 +09:00
2023-02-28 17:11:41 +09:00
2025-08-23 19:45:53 +03:00
2026-02-11 09:39:04 +09:00
2023-04-20 15:36:28 +09:00
2026-01-06 21:35:21 +09:00
2023-03-02 15:01:12 +09:00
2026-01-10 22:10:35 -05:00
2026-03-16 15:25:29 +09:00
2026-08-22 20:56:18 +09:00
2026-03-11 22:20:37 +09:00
2026-09-17 01:33:13 +09:00
2026-05-30 20:16:10 +09:00
2026-03-12 20:48:22 +09:00
2026-09-21 12:19:14 +09:00
2025-07-20 10:31:30 +09:00
2025-12-30 13:42:47 +09:00
2024-05-08 12:52:33 +09:00
2024-05-08 12:52:33 +09:00
2026-05-24 19:56:35 +09:00
2026-01-10 22:10:35 -05:00
2022-08-15 02:36:46 +09:00
2022-08-15 04:24:58 +09:00
2022-08-15 04:24:58 +09:00
2022-08-15 04:24:58 +09:00
2022-08-15 04:24:58 +09:00
2022-08-15 04:24:58 +09:00
2026-09-30 02:16:15 +09:00
2026-02-27 09:07:23 +09:00
2023-03-01 18:06:50 +09:00
2026-05-24 19:58:16 +09:00
2025-07-25 10:49:05 +09:00
2026-08-26 14:38:10 +00:00
2026-09-21 20:53:53 +09:00
2026-08-26 14:38:10 +00:00
2026-08-23 00:13:15 +09:00
2026-08-23 00:13:15 +09:00
2022-10-18 03:26:29 +09:00
2026-01-03 00:14:43 +09:00
2026-01-03 00:14:43 +09:00
2026-06-02 00:35:17 +09:00
2025-10-22 10:57:47 +03:00
2026-06-02 00:35:17 +09:00
2026-01-03 00:14:43 +09:00
2026-02-15 14:30:45 +09:00
2026-05-01 19:48:41 +09:00
2026-05-17 19:49:42 +09:00
2026-09-19 19:21:32 +09:00
2026-02-27 04:36:46 +09:00
2026-05-31 21:47:03 +09:00
2025-07-25 10:50:17 +09:00
2025-08-23 19:45:53 +03:00
2026-05-12 20:51:33 +09:00
2026-06-15 11:19:01 +09:00
2023-03-01 18:06:50 +09:00
2026-08-20 07:08:03 +09:00
2026-06-26 18:24:20 +09:00
2026-03-01 11:36:46 +09:00
2026-06-25 22:33:13 +09:00
2026-09-01 06:57:58 +09:00
2026-02-15 20:33:58 +09:00
2026-01-18 20:00:15 +09:00
2026-02-02 02:02:12 +09:00
2026-03-18 22:09:00 +09:00
2026-03-02 01:24:15 +09:00
2026-09-24 12:21:26 +09:00
2026-02-11 17:42:16 +09:00
2026-06-02 18:00:54 +09:00
2026-05-13 19:53:18 +09:00
2026-01-25 15:20:05 +09:00
2026-08-23 00:13:15 +09:00
2026-08-23 08:33:33 +09:00
2026-05-19 13:20:00 +09:00
2026-09-13 08:17:17 +09:00
2026-08-22 20:56:18 +09:00
2026-06-26 18:22:08 +09:00
2026-04-19 09:14:46 +09:00
2026-06-25 22:33:51 +09:00
2026-05-24 19:56:35 +09:00
2023-11-23 15:40:57 +08:00
2026-08-22 20:52:01 +09:00
2026-08-22 12:43:05 +09:00
2026-02-08 10:00:50 +09:00
2026-04-15 14:17:48 +09:00
2026-02-13 13:36:33 +02:00
2026-08-16 21:32:29 +09:00
2026-02-13 14:13:30 +09:00
2026-09-24 12:21:26 +09:00
2026-10-08 08:11:26 +09:00
2026-09-02 20:26:14 +09:00
2026-02-21 14:12:18 +09:00
2026-08-26 14:38:10 +00:00
2026-04-30 04:40:44 +09:00
2026-05-10 00:30:26 +09:00
2026-09-19 00:40:20 +09:00
2026-05-19 13:20:00 +09:00
2026-04-19 09:14:35 +09:00
2026-09-22 14:53:52 +09:00
2026-09-05 17:57:29 +09:00
2026-01-24 11:37:32 +09:00
2026-10-07 12:54:27 +09:00
2026-08-22 20:52:01 +09:00
2026-09-12 15:51:28 +09:00
2026-08-31 15:44:55 +09:00
2026-08-31 15:44:55 +09:00
2026-08-31 15:44:55 +09:00
2026-08-31 15:44:55 +09:00
2026-08-31 15:44:55 +09:00
2026-08-31 15:44:55 +09:00
2026-08-31 15:44:55 +09:00
2026-08-31 15:44:55 +09:00
2026-08-31 15:44:55 +09:00
2026-08-31 15:44:55 +09:00
2026-08-31 15:44:55 +09:00
2026-09-26 10:39:04 +09:00
2026-09-13 14:00:53 +09:00
2026-08-16 21:32:29 +09:00
2026-08-22 20:55:49 +09:00
2023-11-30 20:01:48 +08:00
2026-08-22 20:56:18 +09:00
2026-08-26 14:38:10 +00:00
2026-01-27 10:49:05 +09:00
2026-01-27 10:49:05 +09:00
2026-08-29 22:43:11 +09:00
2026-08-23 00:13:15 +09:00
2026-04-29 18:29:31 +09:00
2026-09-10 13:46:20 +09:00
2026-09-13 21:18:22 +09:00
2026-09-14 22:52:15 +09:00
2026-08-25 22:01:24 +09:00
2024-06-24 19:00:54 +09:00
2026-09-13 08:17:17 +09:00
2026-05-31 21:47:03 +09:00
2026-10-04 13:53:35 +09:00
2026-09-29 11:45:11 +09:00
2026-01-01 14:44:53 +09:00
2026-01-19 02:45:47 +09:00
2026-02-11 16:50:23 +09:00
2026-08-18 22:24:02 +09:00
2026-04-19 22:33:27 +09:00
2026-06-02 18:00:54 +09:00
2026-09-27 15:14:17 +00:00
2026-09-28 07:04:38 +09:00
2026-08-30 13:45:54 +09:00
2023-04-02 13:42:27 +00:00
2026-10-06 00:24:42 +09:00
2026-10-07 12:54:27 +09:00
2026-08-26 14:38:10 +00:00
2026-02-08 20:36:35 +09:00
2026-08-23 00:13:15 +09:00
2026-08-23 14:32:56 +09:00
2022-08-09 03:36:26 +09:00
2026-02-13 18:07:25 +09:00
2026-06-25 22:33:51 +09:00
2023-02-28 17:11:41 +09:00
2023-02-28 17:11:41 +09:00
2026-03-01 10:39:06 +09:00
2026-03-01 19:27:33 +09:00
2023-11-30 21:01:17 +08:00
2026-05-30 20:16:10 +09:00
2026-05-12 00:39:37 +09:00
2026-10-08 08:11:26 +09:00
2026-08-26 14:38:10 +00:00
2026-08-09 14:58:53 +09:00
2023-11-30 21:06:09 +08:00
2026-02-10 00:48:22 +09:00
2026-09-20 14:22:58 +09:00
2026-09-20 14:22:58 +09:00
2026-09-20 14:22:58 +09:00
2026-01-31 05:49:16 +09:00
2026-09-20 14:22:58 +09:00
2026-10-10 00:49:44 +09:00
2026-07-02 16:32:33 +09:00
2026-02-22 21:31:42 +09:00
2026-06-15 11:20:13 +09:00
2026-06-01 00:08:40 +09:00
2026-04-03 00:49:55 +09:00
2026-01-03 08:27:18 +09:00
2026-05-12 20:52:08 +09:00
2026-02-16 00:31:57 +09:00
2026-06-25 22:33:51 +09:00
2026-05-10 00:28:50 +09:00
2026-09-24 12:21:26 +09:00
2026-08-20 12:47:36 +09:00
2026-02-13 22:15:19 +09:00
2026-03-07 20:20:16 +09:00
2026-10-05 16:39:46 +00:00
2026-04-19 09:15:12 +09:00
2026-09-19 10:24:57 +09:00
2026-02-09 01:40:26 +09:00
2026-10-07 12:54:27 +09:00
2026-06-12 23:49:15 +09:00
2026-08-08 02:25:21 +09:00
2026-09-24 20:53:28 +09:00
2026-09-19 00:40:20 +09:00
2026-05-19 13:20:00 +09:00
2026-04-29 18:52:22 +09:00
2026-09-14 22:52:15 +09:00
2026-06-12 23:50:07 +09:00
2026-02-03 14:58:43 +09:00
2026-02-03 22:10:31 +09:00
2026-09-14 22:52:15 +09:00
2026-08-22 20:55:49 +09:00
2026-02-08 16:35:56 +09:00
2026-03-29 00:52:34 +09:00
2026-02-13 22:15:19 +09:00
2026-06-26 18:22:08 +09:00
2026-06-30 23:32:30 +09:00
2026-01-18 01:23:34 +09:00
2026-06-12 23:50:07 +09:00
2026-02-06 00:15:18 +09:00
2026-05-19 13:31:33 +09:00
2026-10-08 08:11:26 +09:00
2026-01-18 01:23:34 +09:00
2026-09-26 10:39:04 +09:00
2026-08-22 20:55:49 +09:00
2026-02-27 05:44:37 +00:00
2026-06-12 23:49:47 +09:00
2026-09-21 20:53:53 +09:00
2026-09-26 11:13:38 +09:00
2026-06-15 11:21:28 +09:00
2026-08-29 17:59:22 +09:00
2026-09-21 20:53:53 +09:00
2026-08-31 15:44:55 +09:00
2026-06-15 11:20:13 +09:00
2026-01-18 01:23:34 +09:00
2026-08-22 20:56:18 +09:00
2026-08-20 07:08:03 +09:00
2022-08-15 04:24:58 +09:00
2026-09-24 12:21:26 +09:00
2024-06-21 22:37:15 +09:00
2026-02-14 21:40:04 +09:00
2025-08-31 10:35:23 +03:00
2026-04-03 00:49:55 +09:00
2026-02-15 22:11:48 +09:00
2026-02-09 12:56:53 +09:00
2026-09-24 12:21:26 +09:00
2026-08-30 17:20:33 +09:00
2026-08-23 00:13:15 +09:00
2026-09-21 20:53:53 +09:00
2026-02-13 13:55:05 +09:00
2026-10-08 08:11:26 +09:00
2026-02-14 18:19:57 +02:00
2026-09-24 12:21:26 +09:00
2025-08-23 22:09:11 +03:00
2026-08-23 00:13:15 +09:00
2026-08-26 14:38:10 +00:00
2026-09-19 19:21:32 +09:00
2026-05-20 08:59:59 +09:00
2026-08-23 00:13:15 +09:00
2026-09-19 19:21:32 +09:00
2026-10-08 08:11:26 +09:00
2026-08-09 15:06:48 +09:00
2026-09-19 10:24:57 +09:00
2026-07-02 16:32:33 +09:00
2026-08-31 15:44:55 +09:00
2024-04-24 01:15:34 +09:00
2026-10-07 12:54:27 +09:00
2025-08-20 14:08:05 +09:00
2026-01-25 00:18:55 +09:00
2026-01-25 00:18:55 +09:00
2024-07-29 19:53:44 +09:00
2026-04-03 01:33:34 +09:00
2026-01-26 10:40:22 +09:00
2026-02-14 09:17:41 +09:00
2026-04-03 01:33:50 +09:00
2026-01-30 20:48:57 +09:00
2026-09-24 12:21:26 +09:00
2026-08-25 22:01:24 +09:00
2026-01-31 19:56:55 -05:00
2026-06-30 23:32:30 +09:00
2026-09-22 14:53:52 +09:00
2026-09-20 14:22:58 +09:00
2026-06-30 23:32:30 +09:00
2026-04-03 00:50:25 +09:00
2026-09-19 19:21:32 +09:00
2026-09-19 19:21:32 +09:00
2026-09-19 19:21:32 +09:00
2026-05-19 13:31:33 +09:00
2026-07-07 09:19:25 +09:00
2026-05-12 00:43:49 +09:00
2026-09-29 11:45:11 +09:00
2026-09-17 01:33:13 +09:00
2026-02-03 22:10:31 +09:00
2026-03-12 18:08:56 +09:00
2026-05-20 08:59:59 +09:00
2026-09-06 23:54:30 +09:00
2026-02-13 20:24:57 +09:00
2025-08-31 11:58:21 +03:00
2026-02-06 01:14:55 +09:00
2026-09-20 14:22:58 +09:00
2026-05-31 21:47:03 +09:00
2026-02-13 13:42:52 +09:00
2026-06-15 11:20:13 +09:00
2026-09-17 01:33:13 +09:00
2026-07-09 20:24:16 +09:00
2026-06-12 23:50:07 +09:00
2026-08-25 22:01:24 +09:00
2026-09-19 19:21:32 +09:00
2026-09-19 19:21:32 +09:00
2026-02-04 18:32:45 +09:00
2025-07-17 00:03:25 +09:00
2026-03-03 19:57:50 +09:00
2026-08-26 14:38:10 +00:00
2026-09-01 06:57:58 +09:00
2026-09-24 12:21:26 +09:00
2026-09-21 20:53:53 +09:00
2026-09-24 12:21:26 +09:00
2026-08-08 02:25:21 +09:00
2026-09-05 17:57:29 +09:00
2026-02-16 01:19:57 +09:00
2026-09-26 10:39:04 +09:00
2026-08-26 14:38:10 +00:00
2026-05-12 20:51:46 +09:00
2026-09-19 19:21:32 +09:00
2025-04-21 21:11:42 -07:00
2026-03-31 15:45:18 +09:00
2026-05-30 20:16:10 +09:00
2026-09-17 01:33:13 +09:00
2025-12-12 10:37:40 +09:00
2026-08-20 07:08:03 +09:00
2026-02-03 13:41:58 +09:00
2026-01-01 17:15:00 +09:00
2026-08-22 20:55:49 +09:00
2026-06-12 23:49:47 +09:00
2026-06-15 11:12:39 +09:00
2026-05-12 00:43:34 +09:00
2026-05-18 00:23:06 +09:00
2026-02-14 21:40:04 +09:00
2026-05-12 20:51:57 +09:00
2026-09-24 12:21:26 +09:00
2026-05-22 20:10:49 +09:00
2026-05-19 13:31:33 +09:00
2026-09-08 00:25:16 +09:00
2026-02-18 03:09:55 +09:00
2026-02-14 09:18:09 +09:00
2026-02-11 18:01:41 +09:00
2026-10-08 08:11:26 +09:00
2026-02-14 09:13:06 +09:00
2026-09-12 13:14:01 +09:00
2025-03-26 23:12:21 -05:00
2026-05-12 00:42:10 +09:00
2026-09-21 20:53:53 +09:00
2026-09-24 12:21:26 +09:00
2026-09-24 12:21:26 +09:00
2026-02-02 08:11:26 +09:00
2026-09-21 20:53:53 +09:00
2026-02-13 13:42:38 +09:00
2026-09-19 10:24:57 +09:00
2026-08-22 20:56:18 +09:00
2026-08-20 12:47:36 +09:00
2026-10-07 12:54:27 +09:00
2026-09-21 18:11:32 +09:00
2026-09-21 18:11:32 +09:00
2026-09-24 12:21:26 +09:00
2026-05-12 00:43:18 +09:00
2026-09-17 01:33:13 +09:00
2026-10-07 12:54:27 +09:00
2026-08-29 17:59:22 +09:00
2026-09-21 20:53:53 +09:00
2026-09-17 01:33:13 +09:00
2026-01-30 20:48:57 +09:00
2026-06-03 09:52:32 +00:00
2026-08-23 08:33:33 +09:00
2026-06-03 09:52:32 +00:00
2026-09-21 20:53:53 +09:00
2026-09-24 12:21:26 +09:00
2026-02-02 08:08:29 +09:00
2026-02-15 14:37:48 +09:00
2026-05-12 20:53:11 +09:00
2026-05-22 20:11:27 +09:00
2026-10-07 12:54:27 +09:00
2026-09-24 12:21:26 +09:00
2026-08-31 15:44:55 +09:00
2026-05-31 21:47:03 +09:00
2026-09-02 14:55:16 +09:00
2026-06-11 12:15:21 +09:00
2026-09-24 12:21:26 +09:00
2026-06-03 18:36:37 +09:00
2026-02-11 09:39:04 +09:00
2026-10-05 09:03:18 +09:00
2026-05-19 13:20:00 +09:00
2026-06-26 18:22:08 +09:00
2026-08-29 21:12:40 +09:00
2026-09-14 22:52:15 +09:00
2026-08-29 21:12:40 +09:00
2026-09-09 11:47:16 +09:00
2025-01-17 18:04:25 -08:00
2026-05-30 20:16:10 +09:00
2025-07-12 20:44:34 +09:00
2026-10-07 12:54:27 +09:00
2026-09-25 08:21:25 +09:00
2025-08-31 12:13:09 +03:00
2026-10-07 12:54:27 +09:00
2026-06-11 13:36:51 +09:00
2026-02-05 16:20:22 +09:00
2026-04-14 08:58:51 +02:00
2026-08-26 14:38:10 +00:00
2026-01-25 00:18:55 +09:00
2026-01-16 23:03:49 +09:00
2026-08-26 14:38:10 +00:00
2026-01-25 00:18:55 +09:00
2026-08-26 14:38:10 +00:00
2026-04-29 18:16:27 +09:00
2026-09-28 07:04:38 +09:00
2026-05-03 00:15:03 +09:00
2026-06-11 13:36:51 +09:00
2026-03-03 21:27:11 +09:00
2026-06-02 18:00:54 +09:00
2026-06-22 16:46:53 +09:00
2025-07-25 10:49:05 +09:00
2025-07-25 10:49:05 +09:00
2026-02-13 13:42:22 +09:00
2026-08-30 17:28:46 +09:00
2026-04-30 04:45:43 +09:00
2026-05-13 19:53:31 +09:00
2026-01-25 00:18:55 +09:00
2026-08-30 23:35:08 +09:00
2026-02-15 22:11:48 +09:00
2026-06-22 16:46:53 +09:00
2026-05-12 22:14:24 +09:00
2026-06-22 16:46:53 +09:00
2026-05-12 00:44:05 +09:00
2024-06-22 15:24:42 +09:00
2025-12-30 00:36:52 +09:00
2026-09-19 19:21:32 +09:00
2026-09-28 07:05:41 +09:00
2026-09-19 19:21:32 +09:00
2026-05-18 00:23:34 +09:00
2026-05-19 13:20:00 +09:00
2026-05-19 13:20:00 +09:00
2026-09-14 22:52:15 +09:00
2026-03-05 17:25:59 +09:00
2025-12-17 00:28:06 +09:00
2026-06-25 22:33:51 +09:00
2026-01-24 16:11:36 +09:00
2026-09-01 15:29:56 +09:00
2026-01-19 00:38:51 +09:00
2023-06-01 15:29:16 +09:00
2023-04-20 15:36:28 +09:00
2026-05-18 00:23:34 +09:00