summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2010-07-25 22:57:12 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2010-07-25 22:57:12 (GMT)
commit4d4d1ce7a7ee54b071c4e8436dd52725dc301670 (patch)
treeffbf2796c9861fe92282417f3be4a3a611f03be8 /Doc
parent07de165d6ee05a3d3481579c5b125393cdbfd075 (diff)
downloadcpython-4d4d1ce7a7ee54b071c4e8436dd52725dc301670.zip
cpython-4d4d1ce7a7ee54b071c4e8436dd52725dc301670.tar.gz
cpython-4d4d1ce7a7ee54b071c4e8436dd52725dc301670.tar.bz2
#1495229: update the type names used by the XML DOM mapping
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/xml.dom.rst23
1 files changed, 9 insertions, 14 deletions
diff --git a/Doc/library/xml.dom.rst b/Doc/library/xml.dom.rst
index ebe1092..c1786a6 100644
--- a/Doc/library/xml.dom.rst
+++ b/Doc/library/xml.dom.rst
@@ -976,29 +976,24 @@ Python.
Type Mapping
^^^^^^^^^^^^
-The primitive IDL types used in the DOM specification are mapped to Python types
+The IDL types used in the DOM specification are mapped to Python types
according to the following table.
+------------------+-------------------------------------------+
| IDL Type | Python Type |
+==================+===========================================+
-| ``boolean`` | ``IntegerType`` (with a value of ``0`` or |
-| | ``1``) |
+| ``boolean`` | ``bool`` or ``int`` |
+------------------+-------------------------------------------+
-| ``int`` | ``IntegerType`` |
+| ``int`` | ``int`` |
+------------------+-------------------------------------------+
-| ``long int`` | ``IntegerType`` |
+| ``long int`` | ``int`` |
+------------------+-------------------------------------------+
-| ``unsigned int`` | ``IntegerType`` |
+| ``unsigned int`` | ``int`` |
++------------------+-------------------------------------------+
+| ``DOMString`` | ``str`` or ``bytes`` |
++------------------+-------------------------------------------+
+| ``null`` | ``None`` |
+------------------+-------------------------------------------+
-
-Additionally, the :class:`DOMString` defined in the recommendation is mapped to
-a bytes or string object. Applications should be able to handle
-Unicode whenever a string is returned from the DOM.
-
-The IDL ``null`` value is mapped to ``None``, which may be accepted or
-provided by the implementation whenever ``null`` is allowed by the API.
-
.. _dom-accessor-methods: