8000 [po] auto sync · python/python-docs-zh-cn@7b71b83 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7b71b83

Browse files
[po] auto sync
1 parent 38bba42 commit 7b71b83

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "91.47%", "updated_at": "2024-03-14T03:09:16Z"}
1+
{"translation": "91.48%", "updated_at": "2024-03-14T07:09:36Z"}

whatsnew/3.5.po

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3875,6 +3875,12 @@ msgid ""
38753875
"do, else simply define :meth:`~importlib.machinery.Loader.create_module` to "
38763876
"return ``None``. (Contributed by Brett Cannon in :issue:`23014`.)"
38773877
msgstr ""
3878+
"现在当一个导入加载器定义了 :meth:`importlib.machinery.Loader.exec_module` 时它也应该定义 "
3879+
":meth:`~importlib.machinery.Loader.create_module` (现在会引发 "
3880+
":exc:`DeprecationWarning`,在 Python 3.6 中将引发错误)。 如果加载器是继承自 "
3881+
":class:`importlib.abc.Loader` 那么就不需要做什么,在其他情况下只须定义 "
3882+
":meth:`~importlib.machinery.Loader.create_module` 来返回 ``None``。 (由 Brett "
3883+
"Cannon 在 :issue:`23014` 中贡献。)"
38783884

38793885
#: ../../whatsnew/3.5.rst:2450
38803886
msgid ""
@@ -3886,6 +3892,10 @@ msgid ""
38863892
"that could only match an empty string (such as ``\"\\b\"``) now raise an "
38873893
"error. (Contributed by Serhiy Storchaka in :issue:`22818`.)"
38883894
msgstr ""
3895+
":func:`re.split` 函数总是会忽略空的模式匹配,因此 ``\"x*\"`` 模式的效果与 ``\"x+\"`` 相同,而 "
3896+
"``\"\\b\"`` 模式则没有效果。 现在当模式将匹配空字符串时 :func:`re.split` 会引发一个警告。 "
3897+
"为保持兼容性,请使用绝不会匹配空字符串的模式 (例如使用 ``\"x+\"`` 而不是 ``\"x*\"``)。 只匹配空字符串的模式 (例如 "
3898+
"``\"\\b\"``) 现在会引发一个错误。 (由 Serhiy Storchaka 在 :issue:`22818` 中贡献。)"
38893899

38903900
#: ../../whatsnew/3.5.rst:2458
38913901
msgid ""
@@ -4011,6 +4021,9 @@ msgid ""
40114021
" the :attr:`__module__` attribute. This would be an AttributeError in the "
40124022
"future. (Contributed by Serhiy Storchaka in :issue:`20204`.)"
40134023
msgstr ""
4024+
"由于缺少 :attr:`__module__` 属性会破坏封存和内省特性,现在对于没有 :attr:`__module__` "
4025+
"属性的内置类型会引发弃用警告。 这在将来会改为 AttributeError。 (由 Serhiy Storchaka 在 :issue:`20204`"
4026+
" 中贡献。)"
40144027

40154028
#: ../../whatsnew/3.5.rst:2534
40164029
msgid ""

0 commit comments

Comments
 (0)
0