commit | 886483e2b9bbabf60ab769683269b873381dd5ee | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@redhat.com> | Fri Sep 07 18:00:58 2018 +0200 |
committer | GitHub <noreply@github.com> | Fri Sep 07 18:00:58 2018 +0200 |
tree | 90fffe79f3a8897003eccd4c7e6c765ebe3e1bce | |
parent | 254a4663d8c5970ae2928185c50ebaa6c7e62c80 [diff] |
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.