◐ Shell
clean mode source ↗

DO-NOT-MERGE: bpo-34595: Add %t format to PyUnicode_FromFormatV() by vstinner · Pull Request #9122 · python/cpython

serhiy-storchaka

* The %T format of PyUnicode_FromFormatV() now returns the fully
  qualified name of an object type (ex: "module.namespace.typename").
* Add %t format to PyUnicode_FromFormatV(), and so to
  PyUnicode_FromFormat() and PyErr_Format(), to format the "short
  name" of an object type: equivalent to "%s" with
  _PyType_Name(Py_TYPE(obj)).
* Replace %T format with %t format in unicodeobject.c.
* Update existing NEWS entry

@vstinner vstinner changed the title bpo-34595: Add %t format to PyUnicode_FromFormatV() DO-NOT-MERGE: bpo-34595: Add %t format to PyUnicode_FromFormatV()

Sep 11, 2018