Revert "bpo-34595: Add %T format to PyUnicode_FromFormatV() (GH-9080)… · python/cpython@998b806 · GitHub
Skip to content

Commit 998b806

Browse files
authored
Revert "bpo-34595: Add %T format to PyUnicode_FromFormatV() (GH-9080)" (GH-9187)
This reverts commit 886483e.
1 parent acd282f commit 998b806

4 files changed

Lines changed: 53 additions & 66 deletions

File tree

Doc/c-api/unicode.rst

Lines changed: 0 additions & 6 deletions

Lib/test/test_unicode.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2655,10 +2655,6 @@ def check_format(expected, format, *args):
26552655
check_format(r"%A:'abc\xe9\uabcd\U0010ffff'",
26562656
b'%%A:%A', 'abc\xe9\uabcd\U0010ffff')
26572657

2658-
# test %T (object type name)
2659-
check_format(r"type name: str",
2660-
b'type name: %T', 'text')
2661-
26622658
# test %V
26632659
check_format('repr=abc',
26642660
b'repr=%V', 'abc', b'xyz')

Misc/NEWS.d/next/C API/2018-09-06-11-17-49.bpo-34595.Hkz62y.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

Objects/unicodeobject.c

Lines changed: 53 additions & 52 deletions

0 commit comments

Comments
 (0)