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.