Skip to content

Commit 064bc4a

Browse files
[po] auto sync
1 parent 5d20ed3 commit 064bc4a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "92.39%", "updated_at": "2024-03-29T02:25:18Z"}
1+
{"translation": "92.40%", "updated_at": "2024-03-29T07:21:18Z"}

whatsnew/3.4.po

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,6 +1193,11 @@ msgid ""
11931193
"calling :mod:`~dis.dis` on the constructor argument, but returned as a "
11941194
"multi-line string::"
11951195
msgstr ""
1196+
"此外,新增的对应用程序友好的类 :class:`~dis.Bytecode` 提供了一个面向对象的 API "
1197+
"用于以人类可读的形式检查字节码并对指令进行迭代。 :class:`~dis.Bytecode` 构造器接受与 "
1198+
":func:`~dis.get_instruction` 相同的参数(外加一个可选的 *current_offset* 参数),其结果对象可被迭代以产生"
1199+
" :class:`~dis.Instruction` 对象。 但它还有一个 :mod:`~dis.Bytecode.dis` "
1200+
"方法,相当于在构造器参数上调用 :mod:`~dis.dis`,但是返回一个多行字符串::"
11961201

11971202
#: ../../whatsnew/3.4.rst:762
11981203
msgid ""
@@ -1202,6 +1207,9 @@ msgid ""
12021207
"``print(Bytecode.from_traceback(tb).dis())`` is equivalent to "
12031208
"``distb(tb)``)."
12041209
msgstr ""
1210+
":class:`~dis.Bytecode` 还有一个类方法 "
1211+
":meth:`~dis.Bytecode.from_traceback`,它提供了操纵回溯对象的能力(也就是说,``print(Bytecode.from_traceback(tb).dis())``"
1212+
" 等价于 ``distb(tb)``。)"
12051213

12061214
#: ../../whatsnew/3.4.rst:767
12071215
msgid ""
@@ -1240,6 +1248,10 @@ msgid ""
12401248
"the :mod:`unittest` CLI). (Contributed by R. David Murray in "
12411249
":issue:`11390`.)"
12421250
msgstr ""
1251+
"现在 :mod:`doctest` 的命令行接口使用 :mod:`argparse`,并新增了两个选项 ``-o`` 和 ``-f``。 ``-o`` "
1252+
"允许在命令行中指定 :ref:`doctest 选项 <doctest-options>`,而 ``-f`` 是 ``-o FAIL_FAST`` "
1253+
"的简写形式(与 :mod:`unittest` CLI 所支持的类似选项相对应)。 (由 R. David Murray 在 "
1254+
":issue:`11390` 中贡献。)"
12431255

12441256
#: ../../whatsnew/3.4.rst:788
12451257
msgid ""

0 commit comments

Comments
 (0)