Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4d4d1ce7
Commit
4d4d1ce7
authored
Jul 25, 2010
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1495229: update the type names used by the XML DOM mapping
parent
07de165d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
Doc/library/xml.dom.rst
Doc/library/xml.dom.rst
+9
-14
No files found.
Doc/library/xml.dom.rst
View file @
4d4d1ce7
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment