SIGN IN SIGN UP

bpo-34595: Add %T format to PyUnicode_FromFormatV() (GH-9080)

* 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.
V
Victor Stinner committed
886483e2b9bbabf60ab769683269b873381dd5ee
Parent: 254a466
Committed by GitHub <noreply@github.com> on 9/7/2018, 4:00:58 PM