@@ -1476,6 +1476,9 @@ msgid ""
1476
1476
" to handle inflexible APIs that write their output to :data:`sys.stderr` and"
1477
1477
" don't provide any options to redirect it::"
1478
1478
msgstr ""
1479
+ "新增的 :func:`~contextlib.redirect_stderr` :term:`context manager` (类似于 "
1480
+ ":func:`~contextlib.redirect_stdout`) 使得工具脚本更容易处理那些将输出写入到 :data:`sys.stderr` "
1481
+ "并且不提供任何重定向选项的不灵活 API。"
1479
1482
1480
1483
#: ../../whatsnew/3.5.rst:1035
1481
1484
msgid "(Contributed by Berker Peksag in :issue:`22389`.)"
@@ -1490,6 +1493,8 @@ msgid ""
1490
1493
"The :meth:`~csv.csvwriter.writerow` method now supports arbitrary iterables,"
1491
1494
" not just sequences. (Contributed by Serhiy Storchaka in :issue:`23171`.)"
1492
1495
msgstr ""
1496
+ "现在 :meth:`~csv.csvwriter.writerow` 方法可支持任意可迭代对象,而不仅是序列。 (由 Serhiy Storchaka "
1497
+ "在 :issue:`23171` 中贡献。)"
1493
1498
1494
1499
#: ../../whatsnew/3.5.rst:1046
1495
1500
msgid "curses"
@@ -1513,6 +1518,8 @@ msgid ""
1513
1518
"flag has the value ``\" n\" ``. (Contributed by Claudiu Popa in "
1514
1519
":issue:`18039`.)"
1515
1520
msgstr ""
1521
+ "当设置旗标值为 ``\" n\" `` 时 :func:`dumb.open <dbm.dumb.open>` 将总是创建新的数据库。 (由 Claudiu"
1522
+ " Popa 在 :issue:`18039` 中贡献。)"
1516
1523
1517
1524
#: ../../whatsnew/3.5.rst:1061
1518
1525
msgid "difflib"
@@ -1526,13 +1533,18 @@ msgid ""
1526
1533
"``\" ISO-8859-1\" `` to ``\" utf-8\" ``. (Contributed by Berker Peksag in "
1527
1534
":issue:`2052`.)"
1528
1535
msgstr ""
1536
+ "由 :meth:`HtmlDiff.make_file() <difflib.HtmlDiff.make_file>` 生成的 HTML "
1537
+ "文档的字符集现在可通过使用新增的 *charset* 仅限关键字参数来自定义。 HTML 文档的默认字符集已从 ``\" ISO-8859-1\" `` "
1538
+ "改为 ``\" utf-8\" ``。 (由 Berker Peksag 在 :issue:`2052` 中贡献。)"
1529
1539
1530
1540
#: ../../whatsnew/3.5.rst:1070
1531
1541
msgid ""
1532
1542
"The :func:`~difflib.diff_bytes` function can now compare lists of byte "
1533
1543
"strings. This fixes a regression from Python 2. (Contributed by Terry J. "
1534
1544
"Reedy and Greg Ward in :issue:`17445`.)"
1535
1545
msgstr ""
1546
+ "现在 :func:`~difflib.diff_bytes` 函数可能比较字节串的列表。 这修复了一个来自 Python 2 遗留总是。 (由 "
1547
+ "Terry J. Reedy 和 Greg Ward 在 :issue:`17445` 中贡献。)"
1536
1548
1537
1549
#: ../../whatsnew/3.5.rst:1076
1538
1550
msgid "distutils"
@@ -1544,6 +1556,8 @@ msgid ""
1544
1556
"enable parallel building of extension modules. (Contributed by Antoine "
1545
1557
"Pitrou in :issue:`5309`.)"
1546
1558
msgstr ""
1559
+ "现在 ``build`` 和 ``build_ext`` 命令都接受一个 ``-j`` 选项以启用扩展模块的并行编译。 (由 Antoine "
1560
+ "Pitrou 在 :issue:`5309` 中贡献。)"
1547
1561
1548
1562
#: ../../whatsnew/3.5.rst:1082
1549
1563
msgid ""
@@ -1562,6 +1576,9 @@ msgid ""
1562
1576
":class:`unittest.TestSuite` if *module* contains no docstrings, instead of "
1563
1577
"raising :exc:`ValueError`. (Contributed by Glenn Jones in :issue:`15916`.)"
1564
1578
msgstr ""
1579
+ "如果 *module* 不包含任何文档字符串则 :func:`~doctest.DocTestSuite` 函数将返回一个空的 "
1580
+ ":class:`unittest.TestSuite`,而不是引发 :exc:`ValueError`。 (由 Glenn Jones 在 "
1581
+ ":issue:`15916` 中贡献。)"
1565
1582
1566
1583
#: ../../whatsnew/3.5.rst:1096
1567
1584
msgid "email"
0 commit comments