diff options
author | Brett Cannon <bcannon@gmail.com> | 2004-07-10 22:20:32 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2004-07-10 22:20:32 (GMT) |
commit | 711e7d97e4bebec002233e7caa72fc43ffba06a5 (patch) | |
tree | 80f45e962986f89ebc408731e51b276d0ab741f3 /Doc/api | |
parent | 9a2a1cb031f9149ca6bfaf7b43ae0955d16db9b1 (diff) | |
download | cpython-711e7d97e4bebec002233e7caa72fc43ffba06a5.zip cpython-711e7d97e4bebec002233e7caa72fc43ffba06a5.tar.gz cpython-711e7d97e4bebec002233e7caa72fc43ffba06a5.tar.bz2 |
Add PyArg_VaParseTupleAndKeywords(). Document this function and
PyArg_VaParse().
Closes patch #550732. Thanks Greg Chapman.
Diffstat (limited to 'Doc/api')
-rw-r--r-- | Doc/api/utilities.tex | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Doc/api/utilities.tex b/Doc/api/utilities.tex index 9cc7a19..0d71cd9 100644 --- a/Doc/api/utilities.tex +++ b/Doc/api/utilities.tex @@ -145,7 +145,7 @@ values from C values. \begin{cfuncdesc}{PyObject*}{PyImport_AddModule}{char *name} Return the module object corresponding to a module name. The - \var{name} argument may be of the form \code{package.module}). + \var{name} argument may be of the form \code{package.module}. First check the modules dictionary if there's one there, and if not, create a new one and insert it in the modules dictionary. Return \NULL{} with an exception set on failure. @@ -675,6 +675,12 @@ return false and raise an appropriate exception. failure, it returns false and raises the appropriate exception. \end{cfuncdesc} +\begin{cfuncdesc}{int}{PyArg_VaParse}{PyObject *args, char *format, + va_list vargs} + Identical to \cfunction{PyArg_ParseTuple()}, except that it accepts a + va_list rather than a variable number of arguments. +\end{cfuncdesc} + \begin{cfuncdesc}{int}{PyArg_ParseTupleAndKeywords}{PyObject *args, PyObject *kw, char *format, char *keywords[], \moreargs} @@ -683,6 +689,13 @@ return false and raise an appropriate exception. on failure, it returns false and raises the appropriate exception. \end{cfuncdesc} +\begin{cfuncdesc}{int}{PyArg_VaParseTupleAndKeywords}{PyObject *args, + PyObject *kw, char *format, char *keywords[], + va_list vargs} + Identical to \cfunction{PyArg_ParseTupleAndKeywords()}, except that it + accepts a va_list rather than a variable number of arguments. +\end{cfuncdesc} + \begin{cfuncdesc}{int}{PyArg_Parse}{PyObject *args, char *format, \moreargs} Function used to deconstruct the argument lists of ``old-style'' |