We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a59bf67 commit 10072adCopy full SHA for 10072ad
.stat.json
@@ -1 +1 @@
1
-{"translation": "82.98%", "updated_at": "2025-04-15T02:44:19Z"}
+{"translation": "82.98%", "updated_at": "2025-04-16T03:27:42Z"}
whatsnew/3.4.po
@@ -3770,6 +3770,10 @@ msgid ""
3770
"objects that do not have a __format__ method that handles it. See "
3771
":issue:`7994` for background."
3772
msgstr ""
3773
+":meth:`object.__format__` 不再接受非空格式字符串,它现在会改为引发 :exc:`TypeError`。 使用非空字符串自 "
3774
+"Python 3.2 起已被弃用。 做出此项改变是为了防止当对象获得 __format__ "
3775
+"方法时之前可用(但不正确)的代码执行失败的情况,这意味着现在当你对没有用于处理 ``'s'`` 的 __format__ "
3776
+"方法的对象使用该格式代码时你的代码可能会引发 :exc:`TypeError`。 请参阅 :issue:`7994` 了解相关背景。"
3777
3778
#: ../../whatsnew/3.4.rst:2216
3779
msgid ""
0 commit comments