[Python-checkins] CVS: python/dist/src/Doc/lib libwarnings.tex,1.4,1.5

Guido van Rossum gvanrossum@users.sourceforge.net
Wed, 28 Feb 2001 15:34:23 -0800


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv12723

Modified Files:
	libwarnings.tex 
Log Message:
Document warn_explicit().


Index: libwarnings.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libwarnings.tex,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** libwarnings.tex	2001/01/14 14:10:18	1.4
--- libwarnings.tex	2001/02/28 23:34:21	1.5
***************
*** 162,165 ****
--- 162,175 ----
  \end{funcdesc}
  
+ \begin{funcdesc}{warn_explicit}{message, category, filename,
+  lineno\optional{, module\optional{, registry}}}
+ This is a low-level interface to the functionality of
+ \function{warn()}, passing in explicitly the message, category,
+ filename and line number, and optionally the module name and the
+ registry (which should be the \code{__warningregistry__} dictionary of
+ the module).  The module name defaults to the filename with \code{.py}
+ stripped; if no registry is passed, the warning is never suppressed.
+ \end{funcdesc}
+ 
  \begin{funcdesc}{showwarning}{message, category, filename,
  			     lineno\optional{, file}}