mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Minor cleanups, wrap long lines.
This commit is contained in:
parent
b00adfbd83
commit
d79c33a47b
2 changed files with 18 additions and 13 deletions
|
@ -7,7 +7,7 @@
|
||||||
\modulesynopsis{An interface to the curses library.}
|
\modulesynopsis{An interface to the curses library.}
|
||||||
\versionadded{1.6}
|
\versionadded{1.6}
|
||||||
|
|
||||||
The \module{curses} module provides an interface to the curses \UNIX{}
|
The \module{curses} module provides an interface to the curses
|
||||||
library, the de-facto standard for portable advanced terminal
|
library, the de-facto standard for portable advanced terminal
|
||||||
handling.
|
handling.
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ While curses is most widely used in the \UNIX{} environment, versions
|
||||||
are available for DOS, OS/2, and possibly other systems as well. This
|
are available for DOS, OS/2, and possibly other systems as well. This
|
||||||
extension module is designed to match the API of ncurses, an
|
extension module is designed to match the API of ncurses, an
|
||||||
open-source curses library hosted on Linux and the BSD variants of
|
open-source curses library hosted on Linux and the BSD variants of
|
||||||
Unix.
|
\UNIX.
|
||||||
|
|
||||||
\begin{seealso}
|
\begin{seealso}
|
||||||
\seemodule{curses.ascii}{Utilities for working with \ASCII{}
|
\seemodule{curses.ascii}{Utilities for working with \ASCII{}
|
||||||
|
@ -26,11 +26,10 @@ Unix.
|
||||||
\seemodule{curses.wrapper}{Convenience function to ensure proper
|
\seemodule{curses.wrapper}{Convenience function to ensure proper
|
||||||
terminal setup and resetting on
|
terminal setup and resetting on
|
||||||
application entry and exit.}
|
application entry and exit.}
|
||||||
\seetext{Tutorial material on using curses with Python is available
|
\seetitle[http://www.python.org/doc/howto/curses/curses.html]{Curses
|
||||||
on the Python Web site as Andrew Kuchling's
|
Programming with Python}{Tutorial material on using curses
|
||||||
\citetitle[http://www.python.org/doc/howto/curses/curses.html]{Curses
|
with Python, by Andrew Kuchling, is available on the
|
||||||
Programming with Python}, at
|
Python Web site.}
|
||||||
\url{http://www.python.org/doc/howto/curses/curses.html}.}
|
|
||||||
\end{seealso}
|
\end{seealso}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,8 @@ For example, if \var{namespace_separator} is set to
|
||||||
</root>
|
</root>
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
\function{StartElementHandler()} will receive the following strings for each element:
|
\function{StartElementHandler()} will receive the following strings
|
||||||
|
for each element:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
http://default-namespace.org/ root
|
http://default-namespace.org/ root
|
||||||
|
@ -98,7 +99,7 @@ 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.
|
\class{xmlparser} objects have the following attributes:
|
||||||
|
|
||||||
\begin{datadesc}{returns_unicode}
|
\begin{datadesc}{returns_unicode}
|
||||||
If this attribute is set to 1, the handler functions will be passed
|
If this attribute is set to 1, the handler functions will be passed
|
||||||
|
@ -154,11 +155,14 @@ Called for every processing instruction.
|
||||||
Called for character data.
|
Called for character data.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}{UnparsedEntityDeclHandler}{entityName, base, systemId, publicId, notationName}
|
\begin{methoddesc}{UnparsedEntityDeclHandler}{entityName, base,
|
||||||
|
systemId, publicId,
|
||||||
|
notationName}
|
||||||
Called for unparsed (NDATA) entity declarations.
|
Called for unparsed (NDATA) entity declarations.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}{NotationDeclHandler}{notationName, base, systemId, publicId}
|
\begin{methoddesc}{NotationDeclHandler}{notationName, base, systemId,
|
||||||
|
publicId}
|
||||||
Called for notation declarations.
|
Called for notation declarations.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
|
@ -197,10 +201,12 @@ The entity reference will not be passed to the default handler.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}{NotStandaloneHandler}{}
|
\begin{methoddesc}{NotStandaloneHandler}{}
|
||||||
Called if the XML document hasn't been declared as being a standalone document.
|
Called if the XML document hasn't been declared as being a standalone
|
||||||
|
document.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}{ExternalEntityRefHandler}{context, base, systemId, publicId}
|
\begin{methoddesc}{ExternalEntityRefHandler}{context, base, systemId,
|
||||||
|
publicId}
|
||||||
Called for references to external entities.
|
Called for references to external entities.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue