@@ -2358,6 +2358,8 @@ msgid ""
2358
2358
"groups with empty strings instead of raising an exception. (Contributed by "
2359
2359
"Serhiy Storchaka in :issue:`1519638`.)"
2360
2360
msgstr ""
2361
+ "现在 :func:`~re.sub` 和 :func:`~re.subn` 函数将用空字符串替换不匹配的分组而不是引发异常。 (由 Serhiy "
2362
+ "Storchaka 在 :issue:`1519638` 中贡献。)"
2361
2363
2362
2364
#: ../../whatsnew/3.5.rst:1605
2363
2365
msgid ""
@@ -2366,6 +2368,9 @@ msgid ""
2366
2368
" and :attr:`~re.error.colno`, that provide better context information about "
2367
2369
"the error::"
2368
2370
msgstr ""
2371
+ ":class:`re.error` 异常添加了新的属性 :attr:`~re.error.msg`, "
2372
+ ":attr:`~re.error.pattern`, :attr:`~re.error.pos`, :attr:`~re.error.lineno` 和"
2373
+ " :attr:`~re.error.colno`,以提供更详细的错误上下文信息::"
2369
2374
2370
2375
#: ../../whatsnew/3.5.rst:1619
2371
2376
msgid "(Contributed by Serhiy Storchaka in :issue:`22578`.)"
@@ -2381,6 +2386,8 @@ msgid ""
2381
2386
"the specified number of trailing elements in history to the given file. "
2382
2387
"(Contributed by Bruno Cauet in :issue:`22940`.)"
2383
2388
msgstr ""
2389
+ "新增的 :func:`~readline.append_history_file` 函数可被用于将历史数据中指定数量的末尾元素添加到给定的文件中。 (由"
2390
+ " Bruno Cauet 在 :issue:`22940` 中贡献。)"
2384
2391
2385
2392
#: ../../whatsnew/3.5.rst:1631
2386
2393
msgid "selectors"
@@ -2391,6 +2398,8 @@ msgid ""
2391
2398
"The new :class:`~selectors.DevpollSelector` supports efficient ``/dev/poll``"
2392
2399
" polling on Solaris. (Contributed by Giampaolo Rodola' in :issue:`18931`.)"
2393
2400
msgstr ""
2401
+ "新增的 :class:`~selectors.DevpollSelector` 在 Solaris 上支持高效的 ``/dev/poll`` 轮询。 "
2402
+ "(由 Giampaolo Rodola' 在 :issue:`18931` 中贡献。)"
2394
2403
2395
2404
#: ../../whatsnew/3.5.rst:1639
2396
2405
msgid "shutil"
@@ -2403,6 +2412,9 @@ msgid ""
2403
2412
"of the default :func:`~shutil.copy2` if there is a need to ignore file "
2404
2413
"metadata when moving. (Contributed by Claudiu Popa in :issue:`19840`.)"
2405
2414
msgstr ""
2415
+ "现在 :func:`~shutil.move` 函数现在接受一个 *copy_function* "
2416
+ "参数,举例来说,如果需要在移动文件时忽略其元数据,可以使用 :func:`~shutil.copy` 函数来代替默认的 "
2417
+ ":func:`~shutil.copy2`。 (由 Claudiu Popa 在 :issue:`19840` 中贡献。)"
2406
2418
2407
2419
#: ../../whatsnew/3.5.rst:1647
2408
2420
msgid ""
0 commit comments