summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2000-08-17 23:15:21 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2000-08-17 23:15:21 (GMT)
commit0690c86a2a2e0902d9b29337f9e2886f573f1dee (patch)
treef6883b5c2ff4efa7ec01d4f3e3195ae7b3d7f40d
parent4148877acfcab12b9bce19a97fab51c1c9770025 (diff)
downloadcpython-0690c86a2a2e0902d9b29337f9e2886f573f1dee.zip
cpython-0690c86a2a2e0902d9b29337f9e2886f573f1dee.tar.gz
cpython-0690c86a2a2e0902d9b29337f9e2886f573f1dee.tar.bz2
Document the returns_unicode attribute
-rw-r--r--Doc/lib/libpyexpat.tex15
1 files changed, 11 insertions, 4 deletions
diff --git a/Doc/lib/libpyexpat.tex b/Doc/lib/libpyexpat.tex
index 4952379..d663c63 100644
--- a/Doc/lib/libpyexpat.tex
+++ b/Doc/lib/libpyexpat.tex
@@ -92,10 +92,17 @@ Returns a string containing the base set by a previous call to
\method{SetBase()} hasn't been called.
\end{methoddesc}
-\class{xmlparser} objects have the following attributes, containing
-values relating to the most recent error encountered by an
-\class{xmlparser} object. These attributes will only have correct
-values once a call to \method{Parse()} or \method{ParseFile()}
+\class{xmlparser} objects have the following attributes.
+
+\begin{datadesc}{returns_unicode}
+If this attribute is set to 1, the handler functions will be passed
+Unicode strings. If \member{returns_unicode} is 0, 8-bit strings
+containing UTF-8 encoded data will be passed to the handlers.
+\end{datadesc}
+
+The following attributes contain values relating to the most recent
+error encountered by an \class{xmlparser} object, and will only have
+correct values once a call to \method{Parse()} or \method{ParseFile()}
has raised a \exception{pyexpat.error} exception.
\begin{datadesc}{ErrorByteIndex}