mirror of
https://github.com/python/cpython.git
synced 2026-06-28 03:41:13 +00:00
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
|
||
|---|---|---|
| .. | ||
| clinic | ||
| abstract.c | ||
| bytearray.c | ||
| bytes.c | ||
| codec.c | ||
| complex.c | ||
| dict.c | ||
| eval.c | ||
| file.c | ||
| float.c | ||
| heaptype_relative.c | ||
| import.c | ||
| list.c | ||
| long.c | ||
| object.c | ||
| parts.h | ||
| pyos.c | ||
| set.c | ||
| slots.c | ||
| sys.c | ||
| testcapi_long.h | ||
| threadstate.c | ||
| tuple.c | ||
| unicode.c | ||
| util.h | ||
| vectorcall_limited.c | ||
| version.c | ||
| weakref.c | ||