]> granicus.if.org Git - python/commitdiff
Move license information to a less annoying location in the document.
authorFred Drake <fdrake@acm.org>
Wed, 20 Jun 2001 21:39:12 +0000 (21:39 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 20 Jun 2001 21:39:12 +0000 (21:39 +0000)
Add documentation for PyErr_SetFromErrnoWithFilename().

Doc/api/api.tex

index a4886a7ec4c48f37b8944dbf329ba0814d64e9f9..4c55b9691bbc4e863803019d630ba3506bc0cb7c 100644 (file)
@@ -951,6 +951,16 @@ returns \NULL{}, so a wrapper function around a system call can write
 error.
 \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,
 \var{message})}, where \var{message} indicates that an internal
@@ -5329,6 +5339,9 @@ new_object(PyObject *unused, PyObject *args)
 \chapter{Reporting Bugs}
 \input{reportingbugs}
 
+\chapter{History and License}
+\input{license}
+
 \input{api.ind}                        % Index -- must be last
 
 \end{document}