diff options
author | Paul Prescod <prescod@prescod.net> | 2000-07-21 22:05:49 +0000 |
---|---|---|
committer | Paul Prescod <prescod@prescod.net> | 2000-07-21 22:05:49 +0000 |
commit | fdead9aa540f4961912fa96cf94221a0cad5f543 (patch) | |
tree | a2486996d876df9f0614e8b9e6cdb5b8b9130130 | |
parent | e9956c49f8f2d5c6fa3fc4af4edff267953f85bf (diff) | |
download | cpython-fdead9aa540f4961912fa96cf94221a0cad5f543.tar.gz |
Added a few docstrings
-rw-r--r-- | Lib/xml/dom/minidom.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py index 981e5116f3..3f5668ed77 100644 --- a/Lib/xml/dom/minidom.py +++ b/Lib/xml/dom/minidom.py @@ -6,6 +6,10 @@ import types """ minidom.py -- a lightweight DOM implementation based on SAX. +parse( "foo.xml" ) + +parseString( "<foo><bar/></foo>" ) + Todo: ===== * convenience methods for getting elements and text. @@ -440,7 +444,10 @@ def _doparse( func, args, kwargs ): return rootNode def parse( *args, **kwargs ): + "Parse a file into a DOM by filename or file object" return _doparse( pulldom.parse, args, kwargs ) def parseString( *args, **kwargs ): + "Parse a file into a DOM from a string" return _doparse( pulldom.parseString, args, kwargs ) + |