[Lxml-checkins] r51173 - in lxml/trunk: . doc

scoder at codespeak.net scoder at codespeak.net
Fri Feb 1 12:34:35 CET 2008


Author: scoder
Date: Fri Feb  1 12:34:34 2008
New Revision: 51173

Modified:
   lxml/trunk/   (props changed)
   lxml/trunk/doc/tutorial.txt
Log:
 r3378 at delle:  sbehnel | 2008-02-01 12:33:42 +0100
 explain different return values of fromstring() and parse()


Modified: lxml/trunk/doc/tutorial.txt
==============================================================================
--- lxml/trunk/doc/tutorial.txt	(original)
+++ lxml/trunk/doc/tutorial.txt	Fri Feb  1 12:34:34 2008
@@ -602,6 +602,10 @@
     >>> print etree.tostring(root)
     <root>data</root>
 
+The reasoning behind this difference is that ``parse()`` returns a
+complete document from a file, while the string parsing functions are
+commonly used to parse XML fragments.
+
 The ``parse()`` function supports any of the following sources:
 
 * an open file object


More information about the lxml-checkins mailing list