GNU Info

Info Node: (python2.1-lib.info)Type Mapping

(python2.1-lib.info)Type Mapping


Next: Accessor Methods Prev: Conformance Up: Conformance
Enter node , (file) or (file)node

Type Mapping
............

The primitive 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')
int                                  `IntegerType'
long int                             `IntegerType'
unsigned int                         `IntegerType'

Additionally, the `DOMString' defined in the recommendation is mapped
to a Python string or Unicode string.  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.


automatically generated by info2www version 1.2.2.9