[Python-checkins] CVS: python/dist/src/Doc/api api.tex,1.126,1.127

Fred L. Drake fdrake@users.sourceforge.net
Wed, 20 Jun 2001 14:39:14 -0700


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

Modified Files:
	api.tex 
Log Message:

Move license information to a less annoying location in the document.

Add documentation for PyErr_SetFromErrnoWithFilename().


Index: api.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/api.tex,v
retrieving revision 1.126
retrieving revision 1.127
diff -C2 -r1.126 -r1.127
*** api.tex	2001/06/03 03:12:57	1.126
--- api.tex	2001/06/20 21:39:12	1.127
***************
*** 952,955 ****
--- 952,965 ----
  \end{cfuncdesc}
  
+ \begin{cfuncdesc}{PyObject*}{PyErr_SetFromErrnoWithFilename}{PyObject *type,
+                                                              char *filename}
+ Similar to \cfunction{PyErr_SetFromErrno()}, with the additional
+ behavior that if \var{filename} is not \NULL, it is passed to the
+ constructor of \var{type} as a third parameter.  In the case of
+ exceptions such as \exception{IOError} and \exception{OSError}, this
+ is used to define the \member{filename} attribute of the exception
+ instance.
+ \end{cfuncdesc}
+ 
  \begin{cfuncdesc}{void}{PyErr_BadInternalCall}{}
  This is a shorthand for \samp{PyErr_SetString(PyExc_TypeError,
***************
*** 5329,5332 ****
--- 5339,5345 ----
  \chapter{Reporting Bugs}
  \input{reportingbugs}
+ 
+ \chapter{History and License}
+ \input{license}
  
  \input{api.ind}			% Index -- must be last