Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da4b5b8

Browse files
committed
#11379: rephrase minidom documentation to use the term "minimal" instead of "lightweight". Patch by Éric Araujo.
1 parent 4b88d6c commit da4b5b8

2 files changed

Lines changed: 11 additions & 16 deletions

File tree

Doc/library/xml.dom.minidom.rst

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
:mod:`xml.dom.minidom` --- Lightweight DOM implementation
2-
=========================================================
1+
:mod:`xml.dom.minidom` --- Minimal DOM implementation
2+
=====================================================
33

44
.. module:: xml.dom.minidom
5-
:synopsis: Lightweight Document Object Model (DOM) implementation.
5+
:synopsis: Minimal Document Object Model (DOM) implementation.
66
.. moduleauthor:: Paul Prescod <[email protected]>
77
.. sectionauthor:: Paul Prescod <[email protected]>
88
.. sectionauthor:: Martin v. Löwis <[email protected]>
@@ -11,17 +11,11 @@
1111

1212
--------------
1313

14-
:mod:`xml.dom.minidom` is a light-weight implementation of the Document Object
15-
Model interface. It is intended to be simpler than the full DOM and also
16-
significantly smaller.
17-
18-
.. note::
19-
20-
The :mod:`xml.dom.minidom` module provides an implementation of the W3C-DOM,
21-
with an API similar to that in other programming languages. Users who are
22-
unfamiliar with the W3C-DOM interface or who would like to write less code
23-
for processing XML files should consider using the
24-
:mod:`xml.etree.ElementTree` module instead.
14+
:mod:`xml.dom.minidom` is a minimal implementation of the Document Object
15+
Model interface, with an API similar to that in other languages. It is intended
16+
to be simpler than the full DOM and also significantly smaller. Users who are
17+
not already proficient with the DOM should consider using the
18+
:mod:`xml.etree.ElementTree` module for their XML processing instead
2519

2620
DOM applications typically start by parsing some XML into a DOM. With
2721
:mod:`xml.dom.minidom`, this is done through the parse functions::

Lib/xml/dom/minidom.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
"""\
2-
minidom.py -- a lightweight DOM implementation.
1+
"""Simple implementation of the Level 1 DOM.
2+
3+
Namespaces and other minor Level 2 features are also supported.
34
45
parse("foo.xml")
56

0 commit comments

Comments
 (0)