]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-20524: adds better error message for `.format()` (GH-28310)
authorNikita Sobolev <mail@sobolevn.me>
Fri, 24 Sep 2021 15:18:04 +0000 (18:18 +0300)
committerGitHub <noreply@github.com>
Fri, 24 Sep 2021 15:18:04 +0000 (11:18 -0400)
commit8d8729146f21f61af66e70d3ae9501ea6bdccd09
treeed5905df6eb9d2bbab7513b966039cc0642635ca
parent3f8b23f8ddab75d9b77a3997d54e663187e12cc8
bpo-20524: adds better error message for `.format()` (GH-28310)

It now lists the bad format_spec and the type of the object.
Lib/test/test_format.py
Misc/NEWS.d/next/Library/2021-09-13-14-59-01.bpo-20524.PMQ1Fh.rst [new file with mode: 0644]
Python/formatter_unicode.c