bpo-34595: Add %T format to PyUnicode_FromFormatV() by vstinner · Pull Request #9080 · python/cpython (original) (raw)
- Add %T format to PyUnicode_FromFormatV(), and so to
PyUnicode_FromFormat() and PyErr_Format(), to format an object type
name: equivalent to "%s" with Py_TYPE(obj)->tp_name. - Replace Py_TYPE(obj)->tp_name with %T format in unicodeobject.c.
- Add unit test on %T format.
- Rename unicode_fromformat_write_cstr() to
unicode_fromformat_write_utf8(), to make the intent more explicit.
https://bugs.python.org/issue34595
- Add %T format to PyUnicode_FromFormatV(), and so to PyUnicode_FromFormat() and PyErr_Format(), to format an object type name: equivalent to "%s" with Py_TYPE(obj)->tp_name.
- Replace Py_TYPE(obj)->tp_name with %T format in unicodeobject.c.
- Add unit test on %T format.
- Rename unicode_fromformat_write_cstr() to unicode_fromformat_write_utf8(), to make the intent more explicit.
vstinner added a commit that referenced this pull request