Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0690c86

Browse files
committed
Document the returns_unicode attribute
1 parent 4148877 commit 0690c86

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

Doc/lib/libpyexpat.tex

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,17 @@ \section{\module{pyexpat} ---
9292
\method{SetBase()} hasn't been called.
9393
\end{methoddesc}
9494

95-
\class{xmlparser} objects have the following attributes, containing
96-
values relating to the most recent error encountered by an
97-
\class{xmlparser} object. These attributes will only have correct
98-
values once a call to \method{Parse()} or \method{ParseFile()}
95+
\class{xmlparser} objects have the following attributes.
96+
97+
\begin{datadesc}{returns_unicode}
98+
If this attribute is set to 1, the handler functions will be passed
99+
Unicode strings. If \member{returns_unicode} is 0, 8-bit strings
100+
containing UTF-8 encoded data will be passed to the handlers.
101+
\end{datadesc}
102+
103+
The following attributes contain values relating to the most recent
104+
error encountered by an \class{xmlparser} object, and will only have
105+
correct values once a call to \method{Parse()} or \method{ParseFile()}
99106
has raised a \exception{pyexpat.error} exception.
100107

101108
\begin{datadesc}{ErrorByteIndex}

0 commit comments

Comments
 (0)