File tree 2 files changed +13
-1
lines changed 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
- {"translation" : " 92.39 %" , "updated_at" : " 2024-03-29T02:25 :18Z" }
1
+ {"translation" : " 92.40 %" , "updated_at" : " 2024-03-29T07:21 :18Z" }
Original file line number Diff line number Diff line change @@ -1193,6 +1193,11 @@ msgid ""
1193
1193
"calling :mod:`~dis.dis` on the constructor argument, but returned as a "
1194
1194
"multi-line string::"
1195
1195
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`,但是返回一个多行字符串::"
1196
1201
1197
1202
#: ../../whatsnew/3.4.rst:762
1198
1203
msgid ""
@@ -1202,6 +1207,9 @@ msgid ""
1202
1207
"``print(Bytecode.from_traceback(tb).dis())`` is equivalent to "
1203
1208
"``distb(tb)``)."
1204
1209
msgstr ""
1210
+ ":class:`~dis.Bytecode` 还有一个类方法 "
1211
+ ":meth:`~dis.Bytecode.from_traceback`,它提供了操纵回溯对象的能力(也就是说,``print(Bytecode.from_traceback(tb).dis())``"
1212
+ " 等价于 ``distb(tb)``。)"
1205
1213
1206
1214
#: ../../whatsnew/3.4.rst:767
1207
1215
msgid ""
@@ -1240,6 +1248,10 @@ msgid ""
1240
1248
"the :mod:`unittest` CLI). (Contributed by R. David Murray in "
1241
1249
":issue:`11390`.)"
1242
1250
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` 中贡献。)"
1243
1255
1244
1256
#: ../../whatsnew/3.4.rst:788
1245
1257
msgid ""
You can’t perform that action at this time.
0 commit comments