Commit 0690c86a authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Document the returns_unicode attribute

parent 4148877a
...@@ -92,10 +92,17 @@ Returns a string containing the base set by a previous call to ...@@ -92,10 +92,17 @@ Returns a string containing the base set by a previous call to
\method{SetBase()} hasn't been called. \method{SetBase()} hasn't been called.
\end{methoddesc} \end{methoddesc}
\class{xmlparser} objects have the following attributes, containing \class{xmlparser} objects have the following attributes.
values relating to the most recent error encountered by an
\class{xmlparser} object. These attributes will only have correct \begin{datadesc}{returns_unicode}
values once a call to \method{Parse()} or \method{ParseFile()} 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. has raised a \exception{pyexpat.error} exception.
\begin{datadesc}{ErrorByteIndex} \begin{datadesc}{ErrorByteIndex}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment