@@ -1270,6 +1270,9 @@ msgid ""
1270
1270
"chained traceback, just like the interactive interpreter. (Contributed by "
1271
1271
"Claudiu Popa in :issue:`17442`.)"
1272
1272
msgstr ""
1273
+ "现在 :func:`InteractiveInterpreter.showtraceback() "
1274
+ "<code.InteractiveInterpreter.showtraceback>` 方法将打印完整的回溯链,就像在交互模式解释器中一样。 (由 "
1275
+ "Claudiu Popa 在 :issue:`17442` 中贡献。)"
1273
1276
1274
1277
#: ../../whatsnew/3.5.rst:901
1275
1278
msgid "collections"
@@ -1281,6 +1284,8 @@ msgid ""
1281
<
8000
td data-grid-cell-id="diff-17f2a1e88bacf4af4bd2439bab711521582266167af1fd6ed8f6d60474895cfe-1281-1284-1" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative diff-line-number-neutral left-side">1284
"makes it 4 to 100 times faster. (Contributed by Eric Snow in "
1282
1285
":issue:`16991`.)"
1283
1286
msgstr ""
1287
+ "现在 :class:`~collections.OrderedDict` 类使用 C 来实现,令其可提速 4 至 100 倍。 (由 Eric Snow"
1288
+ " 在 :issue:`16991` 中贡献。)"
1284
1289
1285
1290
#: ../../whatsnew/3.5.rst:908
1286
1291
msgid ""
@@ -1290,6 +1295,10 @@ msgid ""
1290
1295
"support :func:`reversed` iteration. (Contributed by Serhiy Storchaka in "
1291
1296
":issue:`19505`.)"
1292
1297
msgstr ""
1298
+ ":meth:`OrderedDict.items() <collections.OrderedDict.items>`, "
1299
+ ":meth:`OrderedDict.keys() <collections.OrderedDict.keys>`, "
1300
+ ":meth:`OrderedDict.values() <collections.OrderedDict.values>` 等视图现在支持 "
1301
+ ":func:`reversed` 迭代。 (由 Serhiy Storchaka 在 :issue:`19505` 中贡献。)"
1293
1302
1294
1303
#: ../../whatsnew/3.5.rst:914
1295
1304
msgid ""
@@ -1301,11 +1310,15 @@ msgid ""
1301
1310
"substitutability for lists. (Contributed by Raymond Hettinger in "
1302
1311
":issue:`23704`.)"
1303
1312
msgstr ""
1313
+ ":class:`~collections.deque` 类现在定义了 :meth:`~collections.deque.index`, "
1314
+ ":meth:`~collections.deque.insert` 和 :meth:`~collections.deque.copy`,并且支持 "
1315
+ "``+`` 和 ``*`` 运算符。 这允许 deque 被识别为 :class:`~collections.abc.MutableSequence` "
1316
+ "并提升其替代列表的能力。 (由 Raymond Hettinger 在 :issue:`23704` 中贡献。)"
1304
1317
1305
1318
#: ../../whatsnew/3.5.rst:921
1306
1319
msgid ""
1307
1320
"Docstrings produced by :func:`~collections.namedtuple` can now be updated::"
1308
- msgstr ""
1321
+ msgstr "由 :func:`~collections.namedtuple` 产生的文档字符串现在可以被更新:: "
1309
1322
1310
1323
#: ../../whatsnew/3.5.rst:928
1311
1324
msgid "(Contributed by Berker Peksag in :issue:`24064`.)"
0 commit comments