Skip to content

Commit e56b591

Browse files
[po] auto sync
1 parent 47fdad2 commit e56b591

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.stat.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "92.80%", "updated_at": "2024-04-28T06:25:05Z"}
1+
{"translation": "92.81%", "updated_at": "2024-04-28T07:21:44Z"}

whatsnew/3.4.po

+9
Original file line numberDiff line numberDiff line change
@@ -2009,6 +2009,12 @@ msgid ""
20092009
"``print`` function, making it inaccessible at the ``pdb`` prompt. "
20102010
"(Contributed by Connor Osborn in :issue:`18764`.)"
20112011
msgstr ""
2012+
"``print`` 命令已从 :mod:`pdb` 中移除,恢复了从 pdb 命令行对 Python :func:`print` 函数的访问。 "
2013+
"Python2 的 ``pdb`` 没有 ``print`` 命令;而是会在输入 ``print`` 时执行 ``print`` 语句。 在 "
2014+
"Python3 中 ``print`` 被错误地设为 pdb :pdbcmd:`p` 命令的别名。 然而,``p`` 会打印其参数的 "
2015+
"``repr``,而不是像 Python2 ``print`` 命令那样打印其参数的 ``str``。 更糟糕的是,Python3 ``pdb "
2016+
"print`` 命令会覆盖 Python3 ``print`` 函数,导致其在 ``pdb`` 提示符下无法被访问。 (由 Connor Osborn "
2017+
"在 :issue:`18764` 中贡献。)"
20122018

20132019
#: ../../whatsnew/3.4.rst:1220
20142020
msgid "pickle"
@@ -2023,6 +2029,9 @@ msgid ""
20232029
":meth:`__new__` method takes keyword-only arguments. It also provides some "
20242030
"efficiency improvements."
20252031
msgstr ""
2032+
"现在 :mod:`pickle` 支持(但默认不使用)新的 pickle 协议即协议 4。 "
2033+
"这个新协议解决了在之前版本中存在的多个问题,例如嵌套类、超长字符串和容器、以及 :meth:`__new__` 方法接受仅限关键字参数的类的序列化。 "
2034+
"它还提供了一些效率上的改进。"
20262035

20272036
#: ../../whatsnew/3.4.rst:1230
20282037
msgid ":pep:`3154` -- Pickle protocol 4"

0 commit comments

Comments
 (0)