@@ -1194,20 +1194,30 @@ msgid ""
11941194"*ssl_handshake_timeout* keyword argument. (Contributed by Neil Aspinall in "
11951195":issue:`29970`.)"
11961196msgstr ""
1197+ ":func:`asyncio.open_connection`, :func:`asyncio.start_server` functions, "
1198+ ":meth:`loop.create_connection() <asyncio.loop.create_connection>`, "
1199+ ":meth:`loop.create_server() <asyncio.loop.create_server>`, "
1200+ ":meth:`loop.create_accepted_socket() <asyncio.loop.connect_accepted_socket>`"
1201+ " 方法及其对应的 UNIX 套接字变体现在接受 *ssl_handshake_timeout* 关键字参数。 (由 Neil Aspinall 在 "
1202+ ":issue:`29970` 中贡献。)"
11971203
11981204#: ../../whatsnew/3.7.rst:738
11991205msgid ""
12001206"The new :meth:`Handle.cancelled() <asyncio.Handle.cancelled>` method returns"
12011207" ``True`` if the callback was cancelled. (Contributed by Marat Sharafutdinov"
12021208" in :issue:`31943`.)"
12031209msgstr ""
1210+ "新的 :meth:`Handle.cancelled() <asyncio.Handle.cancelled>` 方法会在回调被取消时返回 "
1211+ "``True``。 (由 Marat Sharafutdinov 在 :issue:`31943` 中贡献。)"
12041212
12051213#: ../../whatsnew/3.7.rst:742
12061214msgid ""
12071215"The asyncio source has been converted to use the "
12081216":keyword:`async`/:keyword:`await` syntax. (Contributed by Andrew Svetlov in "
12091217":issue:`32193`.)"
12101218msgstr ""
1219+ "asyncio 源已被转换为使用 :keyword:`async`/:keyword:`await` 语法。 (由 Andrew Svetlov 在 "
1220+ ":issue:`32193` 中贡献。)"
12111221
12121222#: ../../whatsnew/3.7.rst:746
12131223msgid ""
@@ -1219,75 +1229,92 @@ msgid ""
12191229":meth:`ReadTransport.pause_reading() <asyncio.ReadTransport.pause_reading>` "
12201230"are now idempotent. (Contributed by Yury Selivanov in :issue:`32356`.)"
12211231msgstr ""
1232+ "新的 :meth:`ReadTransport.is_reading() <asyncio.ReadTransport.is_reading>` "
1233+ "方法可用于确定传输的读取状态。 此外,对 :meth:`ReadTransport.resume_reading() "
1234+ "<asyncio.ReadTransport.resume_reading>` 和 "
1235+ ":meth:`ReadTransport.pause_reading() <asyncio.ReadTransport.pause_reading>` "
1236+ "的调用现在是幂等的。 (由 Yury Selivanov 在 :issue:`32356` 中贡献。)"
12221237
12231238#: ../../whatsnew/3.7.rst:754
12241239msgid ""
12251240"Loop methods which accept socket paths now support passing :term:`path-like "
12261241"objects <path-like object>`. (Contributed by Yury Selivanov in "
12271242":issue:`32066`.)"
12281243msgstr ""
1244+ "接受套接字路径的循环方法现在支持传入 :term:`路径类对象 <path-like object>`。 (由 Yury Selivanov 在 "
1245+ ":issue:`32066` 中贡献。)"
12291246
12301247#: ../../whatsnew/3.7.rst:758
12311248msgid ""
12321249"In :mod:`asyncio` TCP sockets on Linux are now created with ``TCP_NODELAY`` "
12331250"flag set by default. (Contributed by Yury Selivanov and Victor Stinner in "
12341251":issue:`27456`.)"
12351252msgstr ""
1253+ "在 :mod:`asyncio` 中,Linux 上的 TCP 套接字现在创建时默认带有 ``TCP_NODELAY`` 旗标设置。 (由 Yury "
1254+ "Selivanov 和 Victor Stinner 在 :issue:`27456` 中贡献。)"
12361255
12371256#: ../../whatsnew/3.7.rst:762
12381257msgid ""
12391258"Exceptions occurring in cancelled tasks are no longer logged. (Contributed "
12401259"by Yury Selivanov in :issue:`30508`.)"
1241- msgstr ""
1260+ msgstr "在被取消任务中发生的异常不会再被记录。 (由 Yury Selivanov 在 :issue:`30508` 中贡献。) "
12421261
12431262#: ../../whatsnew/3.7.rst:765
12441263msgid ""
12451264"New ``WindowsSelectorEventLoopPolicy`` and "
12461265"``WindowsProactorEventLoopPolicy`` classes. (Contributed by Yury Selivanov "
12471266"in :issue:`33792`.)"
12481267msgstr ""
1268+ "新的 ``WindowsSelectorEventLoopPolicy`` 和 ``WindowsProactorEventLoopPolicy`` "
1269+ "类。 (由 Yury Selivanov 在 :issue:`33792` 中贡献。)"
12491270
12501271#: ../../whatsnew/3.7.rst:769
12511272msgid ""
12521273"Several ``asyncio`` APIs have been :ref:`deprecated <whatsnew37-asyncio-"
12531274"deprecated>`."
1254- msgstr ""
1275+ msgstr "部分 ``asyncio`` API 改为 :ref:`已弃用 <whatsnew37-asyncio-deprecated>`。 "
12551276
12561277#: ../../whatsnew/3.7.rst:774
12571278msgid "binascii"
1258- msgstr ""
1279+ msgstr "binascii "
12591280
12601281#: ../../whatsnew/3.7.rst:776
12611282msgid ""
12621283"The :func:`~binascii.b2a_uu` function now accepts an optional *backtick* "
12631284"keyword argument. When it's true, zeros are represented by ``'`'`` instead "
12641285"of spaces. (Contributed by Xiang Zhang in :issue:`30103`.)"
12651286msgstr ""
1287+ ":func:`~binascii.b2a_uu` 函数现在接受可选的 *backtick* 关键字参数。 当其为真值时,零会以 ``'`'`` "
1288+ "而非空格来表示。 (由 Xiang Zhang 在 :issue:`30103` 中贡献。)"
12661289
12671290#: ../../whatsnew/3.7.rst:782
12681291msgid "calendar"
1269- msgstr ""
1292+ msgstr "calendar "
12701293
12711294#: ../../whatsnew/3.7.rst:784
12721295msgid ""
12731296"The :class:`~calendar.HTMLCalendar` class has new class attributes which "
12741297"ease the customization of CSS classes in the produced HTML calendar. "
12751298"(Contributed by Oz Tiram in :issue:`30095`.)"
12761299msgstr ""
1300+ ":class:`~calendar.HTMLCalendar` 类具有新的类属性,可以简化所生成 HTML 日历中 CSS 类的自定义。 (由 Oz "
1301+ "Tiram 在 :issue:`30095` 中贡献。)"
12771302
12781303#: ../../whatsnew/3.7.rst:790 ../../whatsnew/3.7.rst:1957
12791304msgid "collections"
1280- msgstr ""
1305+ msgstr "collections "
12811306
12821307#: ../../whatsnew/3.7.rst:792
12831308msgid ""
12841309"``collections.namedtuple()`` now supports default values. (Contributed by "
12851310"Raymond Hettinger in :issue:`32320`.)"
12861311msgstr ""
1312+ "``collections.namedtuple()`` 现在支持默认值。 (由 Raymond Hettinger 在 :issue:`32320` "
1313+ "中贡献。)"
12871314
12881315#: ../../whatsnew/3.7.rst:797
12891316msgid "compileall"
1290- msgstr ""
1317+ msgstr "compileall "
12911318
12921319#: ../../whatsnew/3.7.rst:799
12931320msgid ""
@@ -1297,10 +1324,13 @@ msgid ""
12971324"command line using the new ``--invalidation-mode`` argument. (Contributed by"
12981325" Benjamin Peterson in :issue:`31650`.)"
12991326msgstr ""
1327+ ":func:`compileall.compile_dir` 增加了新的 *invalidation_mode* 形参,可用于启用 "
1328+ ":ref:`基于哈希值的 .pyc 有效性检测 <whatsnew37-pep552>`。 失效模式也可以在命令行中使用新的 "
1329+ "``--invalidation-mode`` 参数来指定。 (由 Benjamin Peterson 在 :issue:`31650` 中贡献。)"
13001330
13011331#: ../../whatsnew/3.7.rst:808
13021332msgid "concurrent.futures"
1303- msgstr ""
1333+ msgstr "concurrent.futures "
13041334
13051335#: ../../whatsnew/3.7.rst:810
13061336msgid ""
@@ -1309,24 +1339,31 @@ msgid ""
13091339"support the new *initializer* and *initargs* constructor arguments. "
13101340"(Contributed by Antoine Pitrou in :issue:`21423`.)"
13111341msgstr ""
1342+ ":class:`ProcessPoolExecutor <concurrent.futures.ProcessPoolExecutor>` 和 "
1343+ ":class:`ThreadPoolExecutor <concurrent.futures.ThreadPoolExecutor>` 现在支持新的 "
1344+ "*初始化器* 以及 *initargs* 构造器参数。 (由 Antoine Pitrou 在 :issue:`21423` 中贡献。)"
13121345
13131346#: ../../whatsnew/3.7.rst:815
13141347msgid ""
13151348"The :class:`ProcessPoolExecutor <concurrent.futures.ProcessPoolExecutor>` "
13161349"can now take the multiprocessing context via the new *mp_context* argument. "
13171350"(Contributed by Thomas Moreau in :issue:`31540`.)"
13181351msgstr ""
1352+ ":class:`ProcessPoolExecutor <concurrent.futures.ProcessPoolExecutor>` "
1353+ "现在能通过新的 *mp_context* 参数来接受多进程上下文。 (由 Thomas Moreau 在 :issue:`31540` 中贡献。)"
13191354
13201355#: ../../whatsnew/3.7.rst:821
13211356msgid "contextlib"
1322- msgstr ""
1357+ msgstr "contextlib "
13231358
13241359#: ../../whatsnew/3.7.rst:823
13251360msgid ""
13261361"The new :func:`~contextlib.nullcontext` is a simpler and faster no-op "
13271362"context manager than :class:`~contextlib.ExitStack`. (Contributed by Jesse-"
13281363"Bakker in :issue:`10049`.)"
13291364msgstr ""
1365+ "新的 :func:`~contextlib.nullcontext` 是一个比 :class:`~contextlib.ExitStack` "
1366+ "更简单和快速的无操作上下文管理器。 (由 Jesse-Bakker 在 :issue:`10049` 中贡献。)"
13301367
13311368#: ../../whatsnew/3.7.rst:827
13321369msgid ""
@@ -1337,10 +1374,15 @@ msgid ""
13371374"and :issue:`30241`, and by Alexander Mohr and Ilya Kulakov in "
13381375":issue:`29302`.)"
13391376msgstr ""
1377+ "增加了新的 :func:`~contextlib.asynccontextmanager`, "
1378+ ":class:`~contextlib.AbstractAsyncContextManager` 和 "
1379+ ":class:`~contextlib.AsyncExitStack` 以补充它们所对应的同步项。 (由 Jelle Zijlstra 在 "
1380+ ":issue:`29679` 和 :issue:`30241` 中,以及由 Alexander Mohr 和 Ilya Kulakov 在 "
1381+ ":issue:`29302` 中贡献。)"
13401382
13411383#: ../../whatsnew/3.7.rst:836
13421384msgid "cProfile"
1343- msgstr ""
1385+ msgstr "cProfile "
13441386
13451387#: ../../whatsnew/3.7.rst:838
13461388msgid ""
0 commit comments