cpython/Modules/_testlimitedcapi
Miss Islington (bot) e9c7cc1f0b
[3.15] gh-149044: Improve Py_tp_base[s] docs & error message for non-type bases (GH-151252) (GH-151606)
gh-149044: Improve Py_tp_base[s] docs & error message for non-type bases (GH-151252)

The initial implementation of PEP 820 worsened the error message
when non-types are given as base types in Py_tp_bases & Py_tp_base.
Bring back the 'bases must be types' wording and add a 'got' note for
easier debugging.

Improve slot ID documentation, and soft-deprecate Py_tp_base
(as per the PEP).
(cherry picked from commit 16185e9fe2)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2026-06-18 10:17:15 +02:00
..
clinic [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
abstract.c
bytearray.c
bytes.c
codec.c
complex.c
dict.c gh-141510: Test frozendict in test_capi.test_dict (#145084) 2026-02-21 20:07:30 +01:00
eval.c
file.c
float.c
heaptype_relative.c gh-145921: Add "_DuringGC" functions for tp_traverse (GH-145925) 2026-04-08 09:15:11 +02:00
import.c
list.c
long.c [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
object.c
parts.h [3.15] gh-151130: Add more tests for PyWeakref_* C API (GH-151131) (GH-151140) 2026-06-09 11:37:56 +00:00
pyos.c
set.c
slots.c [3.15] gh-149044: Improve Py_tp_base[s] docs & error message for non-type bases (GH-151252) (GH-151606) 2026-06-18 10:17:15 +02:00
sys.c
testcapi_long.h
threadstate.c gh-144748: Make PyErr_CheckSignals raise the exception scheduled by PyThreadState_SetAsyncExc (GH-145178) 2026-03-02 11:47:32 +01:00
tuple.c
unicode.c
util.h
vectorcall_limited.c
version.c
weakref.c [3.15] gh-151130: Add more tests for PyWeakref_* C API (GH-151131) (GH-151140) 2026-06-09 11:37:56 +00:00