File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
- {"translation" : " 92.80 %" , "updated_at" : " 2024-04-28T06:25:05Z " }
1
+ {"translation" : " 92.81 %" , "updated_at" : " 2024-04-28T07:21:44Z " }
Original file line number Diff line number Diff line change @@ -2009,6 +2009,12 @@ msgid ""
2009
2009
"``print`` function, making it inaccessible at the ``pdb`` prompt. "
2010
2010
"(Contributed by Connor Osborn in :issue:`18764`.)"
2011
2011
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` 中贡献。)"
2012
2018
2013
2019
#: ../../whatsnew/3.4.rst:1220
2014
2020
msgid "pickle"
@@ -2023,6 +2029,9 @@ msgid ""
2023
2029
":meth:`__new__` method takes keyword-only arguments. It also provides some "
2024
2030
"efficiency improvements."
2025
2031
msgstr ""
2032
+ "现在 :mod:`pickle` 支持(但默认不使用)新的 pickle 协议即协议 4。 "
2033
+ "这个新协议解决了在之前版本中存在的多个问题,例如嵌套类、超长字符串和容器、以及 :meth:`__new__` 方法接受仅限关键字参数的类的序列化。 "
2034
+ "它还提供了一些效率上的改进。"
2026
2035
2027
2036
#: ../../whatsnew/3.4.rst:1230
2028
2037
msgid ":pep:`3154` -- Pickle protocol 4"
You can’t perform that action at this time.
0 commit comments