File tree Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
- {"translation" : " 81.03 %" , "updated_at" : " 2025-03-03T15 :55:48Z " }
1
+ {"translation" : " 81.04 %" , "updated_at" : " 2025-03-04T13 :55:54Z " }
Original file line number Diff line number Diff line change @@ -542,6 +542,8 @@ msgid ""
542
542
"If ``Py_mod_multiple_interpreters`` is not specified, the import machinery "
543
543
"defaults to ``Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED``."
544
544
msgstr ""
545
+ "如果未指定 ``Py_mod_multiple_interpreters``,则导入机制默认为 "
546
+ "``Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED``。"
545
547
546
548
#: ../../c-api/module.rst:430
547
549
msgid ""
Original file line number Diff line number Diff line change @@ -285,6 +285,9 @@ msgid ""
285
285
"(or in that of one of its base classes, accessed via the "
286
286
":attr:`~type.__mro__` list) is considered a ``MyIterable`` too."
287
287
msgstr ""
288
+ "这里定义的 :meth:`__subclasshook__` 类方法指明任何在其 :attr:`~object.__dict__` (或在其通过 "
289
+ ":attr:`~type.__mro__` 列表访问的基本) 中具有 :meth:`~object.__iter__` 方法的类也都会被视为 "
290
+ "``MyIterable``。"
288
291
289
292
#: ../../library/abc.rst:154
290
293
msgid ""
@@ -295,6 +298,9 @@ msgid ""
295
298
"``get_iterator`` available as a method of ``Foo``, so it is provided "
296
299
"separately."
297
300
msgstr ""
301
+ "最后,末尾的行使得 ``Foo`` 成为 ``MyIterable`` 的一个虚子类,即使它没有定义 :meth:`~object.__iter__` "
302
+ "方法(它使用了以 :meth:`~object.__len__` 和 :meth:`~object.__getitem__` "
303
+ "等方法定义的旧式可迭代协议)。 请注意这将不会使 ``get_iterator`` 成为 ``Foo`` 可用的方法,所以它会被单独提供。"
298
304
299
305
#: ../../library/abc.rst:163
300
306
msgid "The :mod:`!abc` module also provides the following decorator:"
Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ msgid ""
101
101
"rule is for methods that are automatically inferred from the rest of the "
102
102
"API:"
103
103
msgstr ""
104
+ "已有的类和内置类可被注册为 ABC 的“虚拟子类”。 这些类应当定义完整的 API 包括所有抽象方法和所有混合方法。 这使得用户能依靠 "
105
+ ":func:`issubclass` 或 :func:`isinstance` 测试来确定完整接口是否受到支持。 此规则的例外情况是那些从 API "
106
+ "的其他部分自动推断出来的方法:"
104
107
105
108
#: ../../library/collections.abc.rst:58
106
109
msgid ""
@@ -150,7 +153,7 @@ msgstr ""
150
153
msgid ""
151
154
"Some simple interfaces are directly recognizable by the presence of the "
152
155
"required methods (unless those methods have been set to :const:`None`):"
153
- msgstr ""
156
+ msgstr "某些简单接口可以根据所需方法是否存在来直接识别 (除非这些方法已被设置为 :const:`None`): "
154
157
155
158
#: ../../library/collections.abc.rst:85
156
159
msgid ""
Original file line number Diff line number Diff line change @@ -1256,6 +1256,8 @@ msgid ""
1256
1256
"*start_response* callable should follow the :class:`.StartResponse` "
1257
1257
"protocol::"
1258
1258
msgstr ""
1259
+ "下面是一个可运行的 \" Hello World\" WSGI 应用程序,其中 *start_response* 可调用对象应当遵循 "
1260
+ ":class:`.StartResponse` 协议::"
1259
1261
1260
1262
#: ../../library/wsgiref.rst:827
1261
1263
msgid ""
You can’t perform that action at this time.
0 commit comments