Open
Description
Bug report
Bug description:
A few C tests do not conform to PEP-737 in that they don't:
- Use %T format specifier instead of %s and Py_TYPE(x)->tp_name.
- Use legacy %.200s format specifier for truncating type names.
Example patch that needs applying:
PyErr_Format(PyExc_TypeError,
- "cannot index memory using \"%.200s\"",
- Py_TYPE(key)->tp_name);
+ "cannot index memory using \"%T\"",
+ key);
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response