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

Skip to content

Commit c6291d8

Browse files
[po] auto sync
1 parent 97bb533 commit c6291d8

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.03%", "updated_at": "2025-03-03T15:55:48Z"}
1+
{"translation": "81.04%", "updated_at": "2025-03-04T13:55:54Z"}

c-api/module.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,8 @@ msgid ""
542542
"If ``Py_mod_multiple_interpreters`` is not specified, the import machinery "
543543
"defaults to ``Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED``."
544544
msgstr ""
545+
"如果未指定 ``Py_mod_multiple_interpreters``,则导入机制默认为 "
546+
"``Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED``。"
545547

546548
#: ../../c-api/module.rst:430
547549
msgid ""

library/abc.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ msgid ""
285285
"(or in that of one of its base classes, accessed via the "
286286
":attr:`~type.__mro__` list) is considered a ``MyIterable`` too."
287287
msgstr ""
288+
"这里定义的 :meth:`__subclasshook__` 类方法指明任何在其 :attr:`~object.__dict__` (或在其通过 "
289+
":attr:`~type.__mro__` 列表访问的基本) 中具有 :meth:`~object.__iter__` 方法的类也都会被视为 "
290+
"``MyIterable``。"
288291

289292
#: ../../library/abc.rst:154
290293
msgid ""
@@ -295,6 +298,9 @@ msgid ""
295298
"``get_iterator`` available as a method of ``Foo``, so it is provided "
296299
"separately."
297300
msgstr ""
301+
"最后,末尾的行使得 ``Foo`` 成为 ``MyIterable`` 的一个虚子类,即使它没有定义 :meth:`~object.__iter__` "
302+
"方法(它使用了以 :meth:`~object.__len__` 和 :meth:`~object.__getitem__` "
303+
"等方法定义的旧式可迭代协议)。 请注意这将不会使 ``get_iterator`` 成为 ``Foo`` 可用的方法,所以它会被单独提供。"
298304

299305
#: ../../library/abc.rst:163
300306
msgid "The :mod:`!abc` module also provides the following decorator:"

library/collections.abc.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ msgid ""
101101
"rule is for methods that are automatically inferred from the rest of the "
102102
"API:"
103103
msgstr ""
104+
"已有的类和内置类可被注册为 ABC 的“虚拟子类”。 这些类应当定义完整的 API 包括所有抽象方法和所有混合方法。 这使得用户能依靠 "
105+
":func:`issubclass` 或 :func:`isinstance` 测试来确定完整接口是否受到支持。 此规则的例外情况是那些从 API "
106+
"的其他部分自动推断出来的方法:"
104107

105108
#: ../../library/collections.abc.rst:58
106109
msgid ""
@@ -150,7 +153,7 @@ msgstr ""
150153
msgid ""
151154
"Some simple interfaces are directly recognizable by the presence of the "
152155
"required methods (unless those methods have been set to :const:`None`):"
153-
msgstr ""
156+
msgstr "某些简单接口可以根据所需方法是否存在来直接识别 (除非这些方法已被设置为 :const:`None`):"
154157

155158
#: ../../library/collections.abc.rst:85
156159
msgid ""

library/wsgiref.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,8 @@ msgid ""
12561256
"*start_response* callable should follow the :class:`.StartResponse` "
12571257
"protocol::"
12581258
msgstr ""
1259+
"下面是一个可运行的 \"Hello World\" WSGI 应用程序,其中 *start_response* 可调用对象应当遵循 "
1260+
":class:`.StartResponse` 协议::"
12591261

12601262
#: ../../library/wsgiref.rst:827
12611263
msgid ""

0 commit comments

Comments
 (0)
0