@@ -314,13 +314,17 @@ msgid ""
314314"operations (and attributes) from the base interfaces, plus any new "
315315"operations."
316316msgstr ""
317+ "接口是通过实例对象来访问的。 应用程序不应实例化这些类本身;它们应当使用 :class:`Document` 对象提供的创建器函数。 "
318+ "派生的接口支持上级接口的所有操作(和属性),并添加了新的操作。"
317319
318320#: ../../library/xml.dom.minidom.rst:221
319321msgid ""
320322"Operations are used as methods. Since the DOM uses only :keyword:`in` "
321323"parameters, the arguments are passed in normal order (from left to right). "
322324"There are no optional arguments. ``void`` operations return ``None``."
323325msgstr ""
326+ "操作以方法的形式使用。 因由 DOM 只使用 :keyword:`in` 形参,参数是以正常顺序传入的(从左至右)。 不存在可选参数。 ``void``"
327+ " 操作返回 ``None``。"
324328
325329#: ../../library/xml.dom.minidom.rst:225
326330msgid ""
@@ -330,12 +334,16 @@ msgid ""
330334"``readonly`` attributes must not be changed; this is not enforced at "
331335"runtime."
332336msgstr ""
337+ "IDL 属性会映射到实例属性。 为了兼容针对 Python 的 OMG IDL 语言映射,属性 ``foo`` 也可通过访问器方法 "
338+ ":meth:`_get_foo` 和 :meth:`_set_foo` 来访问。 ``readonly`` 属性不可被修改;运行时并不强制要求这一点。"
333339
334340#: ../../library/xml.dom.minidom.rst:230
335341msgid ""
336342"The types ``short int``, ``unsigned int``, ``unsigned long long``, and "
337343"``boolean`` all map to Python integer objects."
338344msgstr ""
345+ "``short int``, ``unsigned int``, ``unsigned long long`` 和 ``boolean`` "
346+ "类型都会映射为 Python 整数类型。"
339347
340348#: ../../library/xml.dom.minidom.rst:233
341349msgid ""
@@ -344,20 +352,26 @@ msgid ""
344352"of type ``DOMString`` may also be ``None`` where allowed to have the IDL "
345353"``null`` value by the DOM specification from the W3C."
346354msgstr ""
355+ "``DOMString`` 类型会映射为 Python 字符串。 :mod:`xml.dom.minidom` 支持字节串或字符串,但通常是产生字符串。"
356+ " ``DOMString`` 类型的值也可以为 ``None``,W3C 的 DOM 规格说明允许其具有 IDL ``null`` 值。"
347357
348358#: ../../library/xml.dom.minidom.rst:238
349359msgid ""
350360"``const`` declarations map to variables in their respective scope (e.g. "
351361"``xml.dom.minidom.Node.PROCESSING_INSTRUCTION_NODE``); they must not be "
352362"changed."
353363msgstr ""
364+ "``const`` 声明会映射为它们各自的作用域内的变量 (例如 "
365+ "``xml.dom.minidom.Node.PROCESSING_INSTRUCTION_NODE``);它们不可被修改。"
354366
355367#: ../../library/xml.dom.minidom.rst:241
356368msgid ""
357369"``DOMException`` is currently not supported in :mod:`xml.dom.minidom`. "
358370"Instead, :mod:`xml.dom.minidom` uses standard Python exceptions such as "
359371":exc:`TypeError` and :exc:`AttributeError`."
360372msgstr ""
373+ "``DOMException`` 目前不被 :mod:`xml.dom.minidom` 所支持。 :mod:`xml.dom.minidom` "
374+ "会改为使用标准 Python 异常例如 :exc:`TypeError` 和 :exc:`AttributeError`。"
361375
362376#: ../../library/xml.dom.minidom.rst:245
363377msgid ""
@@ -367,6 +381,8 @@ msgid ""
367381"are, however, much more \" Pythonic\" than the interface defined in the W3C "
368382"recommendations."
369383msgstr ""
384+ ":class:`NodeList` 对象是使用 Python 内置列表类型来实现的。 这些对象提供了 DOM 规格说明中定义的接口,但在较早版本的 "
385+ "Python 中它们不支持官方 API。 相比在 W3C 建议中定义的接口,它们要更加的 \" Pythonic\" 。"
370386
371387#: ../../library/xml.dom.minidom.rst:251
372388msgid ""
0 commit comments