88# dannyvi <[email protected] >, 201999# Meng Du <[email protected] >, 20191010# ppcfish <[email protected] >, 201911- # Freesand Leo <[email protected] >, 20211211# Jiuh-star <[email protected] >, 202112+ # Freesand Leo <[email protected] >, 20211313#
1414#, fuzzy
1515msgid ""
@@ -18,7 +18,7 @@ msgstr ""
1818"Report-Msgid-Bugs-To : \n "
1919"POT-Creation-Date : 2021-01-01 16:02+0000\n "
2020"PO-Revision-Date : 2019-09-01 03:21+0000\n "
21- "Last-Translator : Jiuh-star <jiuh.star@gmail .com>, 2021\n "
21+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2021\n "
2222"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2323"MIME-Version : 1.0\n "
2424"Content-Type : text/plain; charset=UTF-8\n "
@@ -1386,7 +1386,7 @@ msgid ""
13861386"This section describes the conformance requirements and relationships "
13871387"between the Python DOM API, the W3C DOM recommendations, and the OMG IDL "
13881388"mapping for Python."
1389- msgstr ""
1389+ msgstr "本节描述了 Python DOM API、W3C DOM 建议以及 Python 的 OMG IDL 映射之间的一致性要求和关系。 "
13901390
13911391#: ../../library/xml.dom.rst:975
13921392msgid "Type Mapping"
@@ -1453,6 +1453,8 @@ msgid ""
14531453"``attribute`` declarations in much the way the Java mapping does. Mapping "
14541454"the IDL declarations ::"
14551455msgstr ""
1456+ "从 OMG IDL 到 Python 的映射以类似于 Java 映射的方式定义了针对 IDL ``attribute`` 声明的访问器函数。 映射以下 "
1457+ "IDL 声明 ::"
14561458
14571459#: ../../library/xml.dom.rst:1008
14581460msgid ""
@@ -1464,6 +1466,10 @@ msgid ""
14641466"``object.someValue`` is *not* required to work, and may raise an "
14651467":exc:`AttributeError`."
14661468msgstr ""
1469+ "会产生三个访问器函数: :attr:`someValue` 的 \" get\" 方法 (:meth:`_get_someValue`),以及 "
1470+ ":attr:`anotherValue` 的 \" get\" 和 \" set\" 方法 (:meth:`_get_anotherValue` 和 "
1471+ ":meth:`_set_anotherValue`)。 特别地,该映射不要求 IDL 属性像普通 Python 属性那样可访问: "
1472+ "``object.someValue`` *并非* 必须可用,并可能引发 :exc:`AttributeError`。"
14671473
14681474#: ../../library/xml.dom.rst:1015
14691475msgid ""
@@ -1476,6 +1482,9 @@ msgid ""
14761482" Attributes that are declared ``readonly`` may not restrict write access in"
14771483" all DOM implementations."
14781484msgstr ""
1485+ "但是,Python DOM API 则 *确实* 要求普通属性访问可用。 这意味着由 Python IDL 解译器生成的典型代理有可能会不可用,如果 "
1486+ "DOM 对象是通过 CORBA 来访问则在客户端可能需要有包装对象。 虽然这确实要求为 CORBA DOM 客户端进行额外的考虑,但具有从 Python"
1487+ " 通过 CORBA 使用 DOM 经验的实现并不会认为这是个问题。 已经声明了 ``readonly`` 的属性不必在所有 DOM 实现中限制写入访问。"
14791488
14801489#: ../../library/xml.dom.rst:1024
14811490msgid ""
@@ -1485,6 +1494,9 @@ msgid ""
14851494"directly from Python. \" Set\" accessors should never be provided for "
14861495"``readonly`` attributes."
14871496msgstr ""
1497+ "在 Python DOM API 中,访问器函数不是必须的。 如果提供,则它们应当采用由 Python IDL "
1498+ "映射所定义的形式,但这些方法会被认为不必要,因为这些属性可以从 Python 直接访问。 永远都不要为 ``readonly`` 属性提供 "
1499+ "\" set\" 访问器。"
14881500
14891501#: ../../library/xml.dom.rst:1029
14901502msgid ""
@@ -1493,3 +1505,5 @@ msgid ""
14931505":meth:`getElementsByTagName`, being \" live\" . The Python DOM API does not "
14941506"require implementations to enforce such requirements."
14951507msgstr ""
1508+ "IDL 定义没有完全体现 W3C DOM API 的要求,如特定对象的概念,又如 :meth:`getElementsByTagName` 的返回值为 "
1509+ "\" live\" 等。 Python DOM API 并不强制具体实现执行这些要求。"
0 commit comments