summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-06-20 21:39:12 (GMT)
committerFred Drake <fdrake@acm.org>2001-06-20 21:39:12 (GMT)
commit490d34dbad1c3207f8ce5543cb7139007b073771 (patch)
treea5ced157f5ec47b7ac29b7ed2e1aee4c22efa915 /Doc/api
parentd5df09cfb69bcbd3a877da3bcba18550de6b7ffe (diff)
downloadcpython-490d34dbad1c3207f8ce5543cb7139007b073771.zip
cpython-490d34dbad1c3207f8ce5543cb7139007b073771.tar.gz
cpython-490d34dbad1c3207f8ce5543cb7139007b073771.tar.bz2
Move license information to a less annoying location in the document.
Add documentation for PyErr_SetFromErrnoWithFilename().
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/api.tex13
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/api/api.tex b/Doc/api/api.tex
index a4886a7..4c55b96 100644
--- a/Doc/api/api.tex
+++ b/Doc/api/api.tex
@@ -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}