mirror of
https://github.com/python/cpython.git
synced 2026-10-28 10:25:05 +08:00
Heap types have no static type object so switch from `Py_Is` to an assert that the shadowed `tp_new` / `tp_init` function is the expected one to validate the vectorcall is only used with the right type. Heap types can have zero-argument `__new__` and `__init__` so add support for that producing the same error message via a new helper `_PyArg_NoPositionalStack()`. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Source files for various builtin objects