Bug report
Bug description:
Parent issue #146102
https://gist.github.com/devdanzin/551cace22f112ef0ff4ed3fdbe54d235
At line 9314-9320, PyErr_Format sets a SystemError for invalid tp_dictoffset but falls through to return 0 (success). Type finishes initialization with invalid offset and pending exception. Requires C extension to trigger.
CPython versions tested on:
CPython main branch, 3.15, 3.14
Operating systems tested on:
No response
Linked PRs
Bug report
Bug description:
Parent issue #146102
https://gist.github.com/devdanzin/551cace22f112ef0ff4ed3fdbe54d235
At line 9314-9320,
PyErr_Formatsets aSystemErrorfor invalidtp_dictoffsetbut falls through toreturn 0(success). Type finishes initialization with invalid offset and pending exception. Requires C extension to trigger.CPython versions tested on:
CPython main branch, 3.15, 3.14
Operating systems tested on:
No response
Linked PRs
typeobject.cmissing error return #148075typeobject.cmissing error return (GH-148075) #148095