Mercurial > cpython-lru_cache-weakref
diff Doc/api/api.tex @ 18192:19bc63a84439 legacy-trunk
Move license information to a less annoying location in the document.
Add documentation for PyErr_SetFromErrnoWithFilename().
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Wed, 20 Jun 2001 21:39:12 +0000 |
| parents | e86d33081bba |
| children | 05c49346b68b |
line wrap: on
line diff
--- a/Doc/api/api.tex Wed Jun 20 21:37:34 2001 +0000 +++ b/Doc/api/api.tex Wed Jun 20 21:39:12 2001 +0000 @@ -951,6 +951,16 @@ 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 @@ \chapter{Reporting Bugs} \input{reportingbugs} +\chapter{History and License} +\input{license} + \input{api.ind} % Index -- must be last \end{document}
