@@ -1332,6 +1332,10 @@ msgid ""
13321332":meth:`~str.maketrans` methods to match the corresponding methods of "
13331333":class:`str`. (Contributed by Joe Jevnik in :issue:`22189`.)"
13341334msgstr ""
1335+ "现在 :class:`~collections.UserString` 类已实现 :meth:`__getnewargs__`, "
1336+ ":meth:`__rmod__`, :meth:`~str.casefold`, :meth:`~str.format_map`, "
1337+ ":meth:`~str.isprintable` 和 :meth:`~str.maketrans` 类以与对应的 :class:`str` 方法相匹配。"
1338+ " (由 Joe Jevnik 在 :issue:`22189` 中贡献。)"
13351339
13361340#: ../../whatsnew/3.5.rst:938
13371341msgid "collections.abc"
@@ -1344,12 +1348,17 @@ msgid ""
13441348":class:`tuple`, :class:`list`, etc. (Contributed by Devin Jeanpierre in "
13451349":issue:`23086`.)"
13461350msgstr ""
1351+ "现在 :meth:`Sequence.index() <collections.abc.Sequence.index>` 方法接受 *start* 和 "
1352+ "*stop* 参数以与对应的 :class:`tuple`, :class:`list` 等的方法相匹配。 (由 Devin Jeanpierre 在 "
1353+ ":issue:`23086` 中贡献。)"
13471354
13481355#: ../../whatsnew/3.5.rst:945
13491356msgid ""
13501357"A new :class:`~collections.abc.Generator` abstract base class. (Contributed "
13511358"by Stefan Behnel in :issue:`24018`.)"
13521359msgstr ""
1360+ "新增 :class:`~collections.abc.Generator` 抽象基类。 (由 Stefan Behnel 在 "
1361+ ":issue:`24018` 中贡献。)"
13531362
13541363#: ../../whatsnew/3.5.rst:948
13551364msgid ""
@@ -1359,12 +1368,18 @@ msgid ""
13591368":class:`~collections.abc.AsyncIterable` abstract base classes. (Contributed "
13601369"by Yury Selivanov in :issue:`24184`.)"
13611370msgstr ""
1371+ "新增 :class:`~collections.abc.Awaitable`, :class:`~collections.abc.Coroutine`,"
1372+ " :class:`~collections.abc.AsyncIterator` 和 "
1373+ ":class:`~collections.abc.AsyncIterable` 抽象基类。 (由 Yury Selivanov 在 "
1374+ ":issue:`24184` 中贡献。)"
13621375
13631376#: ../../whatsnew/3.5.rst:953
13641377msgid ""
13651378"For earlier Python versions, a backport of the new ABCs is available in an "
13661379"external `PyPI package <https://pypi.org/project/backports_abc>`_."
13671380msgstr ""
1381+ "对于更早的 Python,这些新 ABC 的向下移植版可通过一个外部的 `PyPI 包 "
1382+ "<https://pypi.org/project/backports_abc>`_ 来获取。"
13681383
13691384#: ../../whatsnew/3.5.rst:958
13701385msgid "compileall"
@@ -1377,12 +1392,15 @@ msgid ""
13771392":func:`~compileall.compile_dir` function has a corresponding ``workers`` "
13781393"parameter. (Contributed by Claudiu Popa in :issue:`16104`.)"
13791394msgstr ""
1395+ "新增 :mod:`compileall` 选项 :samp:`-j {N}`,允许同时运行 *N* 个工作进程来执行并行的字节码编译。 "
1396+ ":func:`~compileall.compile_dir` 函数增加了相应的 ``workers`` 形参。 (由 Claudiu Popa 在 "
1397+ ":issue:`16104` 中贡献。)"
13801398
13811399#: ../../whatsnew/3.5.rst:965
13821400msgid ""
13831401"Another new option, ``-r``, allows controlling the maximum recursion level "
13841402"for subdirectories. (Contributed by Claudiu Popa in :issue:`19628`.)"
1385- msgstr ""
1403+ msgstr "另一个新选项 ``-r``,允许控制最大的子目录递归层级。 (由 Claudiu Popa 在 :issue:`19628` 中贡献。) "
13861404
13871405#: ../../whatsnew/3.5.rst:968
13881406msgid ""
@@ -1393,6 +1411,10 @@ msgid ""
13931411"now accept an integer value indicating the level of output suppression. "
13941412"(Contributed by Thomas Kluyver in :issue:`21338`.)"
13951413msgstr ""
1414+ "现在可以多次指定 ``-q`` 命令行选项,在此情况下,所有输出包括错误都将被抑制。 在 "
1415+ ":func:`~compileall.compile_dir`, :func:`~compileall.compile_file` 和 "
1416+ ":func:`~compileall.compile_path` 中相应的 ``quiet`` 形参现在可接受一个整数值来指明输出抑制的级别。 (由 "
1417+ "Thomas Kluyver 在 :issue:`21338` 中贡献。)"
13961418
13971419#: ../../whatsnew/3.5.rst:977
13981420msgid "concurrent.futures"
@@ -1405,13 +1427,18 @@ msgid ""
14051427"performance when :meth:`~concurrent.futures.ProcessPoolExecutor` is used. "
14061428"(Contributed by Dan O'Reilly in :issue:`11271`.)"
14071429msgstr ""
1430+ "现在 :meth:`Executor.map() <concurrent.futures.Executor.map>` 方法接受一个 "
1431+ "*chunksize* 参数以允许在使用 :meth:`~concurrent.futures.ProcessPoolExecutor` "
1432+ "设置任务批次来提升运行效率。 (由 Dan O'Reilly 在 :issue:`11271` 中贡献。)"
14081433
14091434#: ../../whatsnew/3.5.rst:984
14101435msgid ""
14111436"The number of workers in the :class:`~concurrent.futures.ThreadPoolExecutor`"
14121437" constructor is optional now. The default value is 5 times the number of "
14131438"CPUs. (Contributed by Claudiu Popa in :issue:`21527`.)"
14141439msgstr ""
1440+ "现在 :class:`~concurrent.futures.ThreadPoolExecutor` 构造器中的工作线程数量是可选的。 默认值为 CPU"
1441+ " 数量的 5 倍。 (由 Claudiu Popa 在 :issue:`21527` 中贡献。)"
14151442
14161443#: ../../whatsnew/3.5.rst:990
14171444msgid "configparser"
@@ -1425,6 +1452,9 @@ msgid ""
14251452"methods in ``ConfigParser`` subclasses. Converters defined in a parser "
14261453"instance are inherited by its section proxies."
14271454msgstr ""
1455+ "现在 :mod:`configparser` 提供了一种方式通过在 :class:`~configparser.ConfigParser` "
1456+ "构造器中指定一个由转换器组成的字典,或将它们定义为 ``ConfigParser`` 子类中的方法来定制值的转换。 "
1457+ "在解析器实例中定义的转换器将被它的节代理所继承。"
14281458
14291459#: ../../whatsnew/3.5.rst:998
14301460msgid "Example::"
@@ -1445,6 +1475,9 @@ msgid ""
14451475" to handle inflexible APIs that write their output to :data:`sys.stderr` and"
14461476" don't provide any options to redirect it::"
14471477msgstr ""
1478+ "新增的 :func:`~contextlib.redirect_stderr` :term:`context manager` (类似于 "
1479+ ":func:`~contextlib.redirect_stdout`) 使得工具脚本更容易处理那些将输出写入到 :data:`sys.stderr` "
1480+ "并且不提供任何重定向选项的不灵活 API。"
14481481
14491482#: ../../whatsnew/3.5.rst:1035
14501483msgid "(Contributed by Berker Peksag in :issue:`22389`.)"
@@ -1459,6 +1492,8 @@ msgid ""
14591492"The :meth:`~csv.csvwriter.writerow` method now supports arbitrary iterables,"
14601493" not just sequences. (Contributed by Serhiy Storchaka in :issue:`23171`.)"
14611494msgstr ""
1495+ "现在 :meth:`~csv.csvwriter.writerow` 方法可支持任意可迭代对象,而不仅是序列。 (由 Serhiy Storchaka "
1496+ "在 :issue:`23171` 中贡献。)"
14621497
14631498#: ../../whatsnew/3.5.rst:1046
14641499msgid "curses"
0 commit comments