@@ -1104,18 +1104,26 @@ msgid ""
1104
1104
"customize the task factory that :meth:`loop.create_task() "
1105
1105
"<asyncio.loop.create_task>` method uses. (Contributed by Yury Selivanov.)"
1106
1106
msgstr ""
1107
+ "新增 :meth:`loop.set_task_factory() <asyncio.loop.set_task_factory>` 和 "
1108
+ ":meth:`loop.get_task_factory() <asyncio.loop.get_task_factory>` 方法用于自定义供 "
1109
+ ":meth:`loop.create_task() <asyncio.loop.create_task>` 方法使用的任务工厂。 (由 Yury "
1110
+ "Selivanov 贡献。)"
1107
1111
1108
1112
#: ../../whatsnew/3.5.rst:814
1109
1113
msgid ""
1110
1114
"New :meth:`Queue.join() <asyncio.Queue.join>` and :meth:`Queue.task_done() "
1111
1115
"<asyncio.Queue.task_done>` queue methods. (Contributed by Victor Stinner.)"
1112
1116
msgstr ""
1117
+ "新增 :meth:`Queue.join() <asyncio.Queue.join>` 和 :meth:`Queue.task_done() "
1118
+ "<asyncio.Queue.task_done>` 队列方法。 (由 Victor Stinner 贡献。)"
1113
1119
1114
1120
#: ../../whatsnew/3.5.rst:818
1115
1121
msgid ""
1116
1122
"The ``JoinableQueue`` class was removed, in favor of the "
1117
1123
":class:`asyncio.Queue` class. (Contributed by Victor Stinner.)"
1118
1124
msgstr ""
1125
+ "移除了 ``JoinableQueue`` 类,建议改用 :class:`asyncio.Queue` 类。 (由 Victor Stinner "
1126
+ "贡献。)"
1119
1127
1120
1128
#: ../../whatsnew/3.5.rst:822
1121
1129
msgid "Updates in 3.5.1:"
@@ -1170,13 +1178,19 @@ msgid ""
1170
1178
"faster :class:`asyncio.Future` implementation. (Contributed by Yury "
1171
1179
"Selivanov.)"
1172
1180
msgstr ""
1181
+ "新增 :meth:`loop.create_future() <asyncio.loop.create_future>` 方法用来创建 Future "
1182
+ "对象。 这允许替代性的事件循环实现,比如 `uvloop "
1183
+ "<https://github.com/MagicStack/uvloop>`_,以提供更快速的 :class:`asyncio.Future` 实现。"
1184
+ " (由 Yury Selivanov 贡献。)"
1173
1185
1174
1186
#: ../../whatsnew/3.5.rst:850
1175
1187
msgid ""
1176
1188
"New :meth:`loop.get_exception_handler() "
1177
1189
"<asyncio.loop.get_exception_handler>` method to get the current exception "
1178
1190
"handler. (Contributed by Yury Selivanov.)"
1179
1191
msgstr ""
1192
+ "新增 :meth:`loop.get_exception_handler() <asyncio.loop.get_exception_handler>`"
1193
+ " 方法用于获取当前异常处理句柄。 (由 Yury Selivanov 贡献。)"
1180
1194
1181
1195
#: ../../whatsnew/3.5.rst:854
1182
1196
msgid ""
@@ -1194,13 +1208,18 @@ msgid ""
1194
1208
"optimized to avoid calling the system ``getaddrinfo`` function if the "
1195
1209
"address is already resolved. (Contributed by A. Jesse Jiryu Davis.)"
1196
1210
msgstr ""
1211
+ ":meth:`loop.create_connection() <asyncio.loop.create_connection>` 和 "
1212
+ ":meth:`loop.create_server() <asyncio.loop.create_server>` "
1213
+ "方法已获得优化以避免当地址已被解析时调用系统的 ``getaddrinfo`` 函数。 (由 A. Jesse Jiryu Davis 贡献。)"
1197
1214
1198
1215
#: ../../whatsnew/3.5.rst:865
1199
1216
msgid ""
1200
1217
"The :meth:`loop.sock_connect(sock, address) <asyncio.loop.sock_connect>` no "
1201
1218
"longer requires the *address* to be resolved prior to the call. (Contributed"
1202
1219
" by A. Jesse Jiryu Davis.)"
1203
1220
msgstr ""
1221
+ ":meth:`loop.sock_connect(sock, address) <asyncio.loop.sock_connect>` "
1222
+ "不再要求在其被调用之前已解析 *address*。 (由 A. Jesse Jiryu Davis 贡献。)"
1204
1223
1205
1224
#: ../../whatsnew/3.5.rst:871
1206
1225
msgid "bz2"
@@ -1212,6 +1231,9 @@ msgid ""
1212
1231
"method now accepts an optional *max_length* argument to limit the maximum "
1213
1232
"size of decompressed data. (Contributed by Nikolaus Rath in :issue:`15955`.)"
1214
1233
msgstr ""
1234
+ "现在 :meth:`BZ2Decompressor.decompress <bz2.BZ2Decompressor.decompress>` "
1235
+ "方法接受可选的 *max_length* 参数用来限制解压缩数据的大小上限。 (由 Nikolaus Rath 在 :issue:`15955` "
1236
+ "中贡献。)"
1215
1237
1216
1238
#: ../../whatsnew/3.5.rst:879
1217
1239
msgid "cgi"
@@ -1222,6 +1244,8 @@ msgid ""
1222
1244
"The :class:`~cgi.FieldStorage` class now supports the :term:`context "
1223
1245
"manager` protocol. (Contributed by Berker Peksag in :issue:`20289`.)"
1224
1246
msgstr ""
1247
+ "现在 :class:`~cgi.FieldStorage` 类已支持 :term:`context manager` 协议。 (由 Berker "
1248
+ "Peksag 在 :issue:`20289` 中贡献。)"
1225
1249
1226
1250
#: ../../whatsnew/3.5.rst:886
1227
1251
msgid "cmath"
@@ -1232,6 +1256,8 @@ msgid ""
1232
1256
"A new function :func:`~cmath.isclose` provides a way to test for approximate"
1233
1257
" equality. (Contributed by Chris Barker and Tal Einat in :issue:`24270`.)"
1234
1258
msgstr ""
1259
+ "新增函数 :func:`~cmath.isclose` 提供了一种测试近似相等的方式。 (由 Chris Barker 和 Tal Einat 在 "
1260
+ ":issue:`24270` 中贡献。)"
1235
1261
1236
1262
#: ../../whatsnew/3.5.rst:893
1237
1263
msgid "code"
0 commit comments