Update of /cvsroot/python/python/dist/src/Doc/lib In directory usw-pr-cvs1:/tmp/cvs-serv7150/lib Modified Files: libwarnings.tex Log Message: Markup nit: Command line options should be marked with \programopt. Other minor markup nits fixed. Make reference to PyErr_Warn() a hyperlink. Index: libwarnings.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/libwarnings.tex,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** libwarnings.tex 2000/12/25 06:19:08 1.2 --- libwarnings.tex 2001/01/04 05:59:37 1.3 *************** *** 4,10 **** \declaremodule{standard}{warnings} \modulesynopsis{Issue warning messages and control their disposition.} - \index{warnings} Warning messages are typically issued in situations where it is useful --- 4,10 ---- \declaremodule{standard}{warnings} \modulesynopsis{Issue warning messages and control their disposition.} \index{warnings} + \versionadded{2.1} Warning messages are typically issued in situations where it is useful *************** *** 16,20 **** Python programmers issue warnings by calling the \function{warn()} function defined in this module. (C programmers use ! \code{PyErr_Warn()}). Warning messages are normally written to \code{sys.stderr}, but their --- 16,22 ---- Python programmers issue warnings by calling the \function{warn()} function defined in this module. (C programmers use ! \cfunction{PyErr_Warn()}; see the ! \citetitle[../api/exceptionHandling.html]{Python/C API Reference ! Manual} for details). Warning messages are normally written to \code{sys.stderr}, but their *************** *** 51,55 **** currently defined: ! \begin{tableii}{l|l}{code}{Class}{Description} \lineii{Warning}{This is the base class of all warning category --- 53,57 ---- currently defined: ! \begin{tableii}{l|l}{exception}{Class}{Description} \lineii{Warning}{This is the base class of all warning category *************** *** 93,111 **** \item \var{action} is one of the following strings: ! \begin{tableii}{l|l}{code}{value}{disposition} ! \lineii{\code{"error"}}{turn matching warnings into exceptions} ! \lineii{\code{"ignore"}}{never print matching warnings} ! \lineii{\code{"always"}}{always print matching warnings} ! \lineii{\code{"default"}}{print the first occurrence of matching warnings for each location where the warning is issued} ! \lineii{\code{"module"}}{print the first occurrence of matching warnings for each module where the warning is issued} ! \lineii{\code{"once"}}{print only the first occurrence of matching warnings, regardless of location} --- 95,113 ---- \item \var{action} is one of the following strings: ! \begin{tableii}{l|l}{code}{Value}{Disposition} ! \lineii{"error"}{turn matching warnings into exceptions} ! \lineii{"ignore"}{never print matching warnings} ! \lineii{"always"}{always print matching warnings} ! \lineii{"default"}{print the first occurrence of matching warnings for each location where the warning is issued} ! \lineii{"module"}{print the first occurrence of matching warnings for each module where the warning is issued} ! \lineii{"once"}{print only the first occurrence of matching warnings, regardless of location} *************** *** 131,137 **** raise \code{category(message)}. ! The warnings filter is initialized by \samp{-W} options passed to the ! Python interpreter command line. The interpreter saves the arguments ! for all \samp{-W} options without interpretation in \code{sys.warnoptions}; the \module{warnings} module parses these when it is first imported (invalid options are ignored, after printing a --- 133,139 ---- raise \code{category(message)}. ! The warnings filter is initialized by \programopt{-W} options passed ! to the Python interpreter command line. The interpreter saves the ! arguments for all \programopt{-W} options without interpretation in \code{sys.warnoptions}; the \module{warnings} module parses these when it is first imported (invalid options are ignored, after printing a *************** *** 188,192 **** \begin{funcdesc}{resetwarnings}{} Reset the warnings filter. This discards the effect of all previous ! calls to \function{filterwarnings()}, including that of the \samp{-W} ! command line options. \end{funcdesc} --- 190,194 ---- \begin{funcdesc}{resetwarnings}{} Reset the warnings filter. This discards the effect of all previous ! calls to \function{filterwarnings()}, including that of the ! \programopt{-W} command line options. \end{funcdesc}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4