]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added a few docstrings
authorPaul Prescod <prescod@prescod.net>
Fri, 21 Jul 2000 22:05:49 +0000 (22:05 +0000)
committerPaul Prescod <prescod@prescod.net>
Fri, 21 Jul 2000 22:05:49 +0000 (22:05 +0000)
Lib/xml/dom/minidom.py

index 981e5116f3b2764867bf6d7a3275808f85df8788..3f5668ed7787e093dc2dfaeaae2acdf78d7dc991 100644 (file)
@@ -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 )
+