[Python-checkins] CVS: python/dist/src/Doc/lib xmlsaxhandler.tex,1.1,1.2
Fred L. Drake
python-dev@python.org
Mon, 4 Dec 2000 14:04:44 -0800
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv26556/lib
Modified Files:
xmlsaxhandler.tex
Log Message:
Added a comment for ContentHandler.characters() explaining how to migrate
SAX1 code to SAX2, based on bug #123695.
Index: xmlsaxhandler.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/xmlsaxhandler.tex,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** xmlsaxhandler.tex 2000/10/12 20:05:09 1.1
--- xmlsaxhandler.tex 2000/12/04 22:04:15 1.2
***************
*** 256,259 ****
--- 256,267 ----
\var{content} may be a Unicode string or a byte string; the
\code{expat} reader module produces always Unicode strings.
+
+ \strong{Note:} The earlier SAX 1 interface provided by the Python
+ XML Special Interest Group used a more Java-like interface for this
+ method. Since most parsers used from Python did not take advatage
+ of the older interface, the simpler signature was chosen to replace
+ it. To convert old code to the new interface, use \var{content}
+ instead of slicing content with the old \var{offset} and
+ \var{lenght} parameters.
\end{methoddesc}