diff options
author | Fred Drake <fdrake@acm.org> | 1998-02-16 06:23:20 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-02-16 06:23:20 (GMT) |
commit | 53fb7723eeb378d53a0ef56e1f2f3487f981ffab (patch) | |
tree | 436f3de15e79d4650513721adf98c1527f56b17a /Doc/api.tex | |
parent | e058b4f124571cace761677c021d9b6521c01a8b (diff) | |
download | cpython-53fb7723eeb378d53a0ef56e1f2f3487f981ffab.zip cpython-53fb7723eeb378d53a0ef56e1f2f3487f981ffab.tar.gz cpython-53fb7723eeb378d53a0ef56e1f2f3487f981ffab.tar.bz2 |
Added index enties for the Python built-in functions, where appropriate.
Diffstat (limited to 'Doc/api.tex')
-rw-r--r-- | Doc/api.tex | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/Doc/api.tex b/Doc/api.tex index f36f105..e546446 100644 --- a/Doc/api.tex +++ b/Doc/api.tex @@ -918,8 +918,9 @@ be created in this case). \begin{cfuncdesc}{PyObject *}{PyImport_ImportModuleEx}{char *name, PyObject *globals, PyObject *locals, PyObject *fromlist} \strong{(NEW in 1.5a4!)} Import a module. This is best described by referring to the built-in -Python function \function{__import__()}, as the standard -\function{__import__()} function calls this function directly. +Python function \function{__import__()}\bifuncindex{__import__}, as +the standard \function{__import__()} function calls this function +directly. The return value is a new reference to the imported module or top-level package, or \NULL{} with an exception set on failure @@ -939,7 +940,7 @@ current environment, e.g. by \module{rexec} or \module{ihooks}. \begin{cfuncdesc}{PyObject *}{PyImport_ReloadModule}{PyObject *m} Reload a module. This is best described by referring to the built-in -Python function \function{reload()}, as the standard +Python function \function{reload()}\bifuncindex{reload}, as the standard \function{reload()} function calls this function directly. Return a new reference to the reloaded module, or \NULL{} with an exception set on failure (the module still exists in this case). @@ -958,10 +959,11 @@ exception set on failure. \begin{cfuncdesc}{PyObject *}{PyImport_ExecCodeModule}{char *name, PyObject *co} Given a module name (possibly of the form \code{package.module}) and a code object read from a Python bytecode file or obtained from the -built-in function \function{compile()}, load the module. Return a new -reference to the module object, or \NULL{} with an exception set -if an error occurred (the module may still be created in this case). -(This function would reload the module if it was already imported.) +built-in function \function{compile()}\bifuncindex{compile}, load the +module. Return a new reference to the module object, or \NULL{} with +an exception set if an error occurred (the module may still be created +in this case). (This function would reload the module if it was +already imported.) \end{cfuncdesc} \begin{cfuncdesc}{long}{PyImport_GetMagicNumber}{} @@ -1200,6 +1202,7 @@ This function always succeeds. On success, returns a type object corresponding to the object type of object \var{o}. On failure, returns \NULL{}. This is equivalent to the Python expression \samp{type(\var{o})}. +\bifuncindex{type} \end{cfuncdesc} \begin{cfuncdesc}{int}{PyObject_Length}{PyObject *o} @@ -1277,15 +1280,15 @@ failure. This is the equivalent of the Python expression \begin{cfuncdesc}{PyObject*}{PyNumber_Divmod}{PyObject *o1, PyObject *o2} -See the built-in function \function{divmod()}. Returns \NULL{} on -failure. This is the equivalent of the Python expression -\samp{divmod(\var{o1}, \var{o2})}. +See the built-in function \function{divmod()}\bifuncindex{divmod}. +Returns \NULL{} on failure. This is the equivalent of the Python +expression \samp{divmod(\var{o1}, \var{o2})}. \end{cfuncdesc} \begin{cfuncdesc}{PyObject*}{PyNumber_Power}{PyObject *o1, PyObject *o2, PyObject *o3} -See the built-in function \function{pow()}. Returns \NULL{} on -failure. This is the equivalent of the Python expression +See the built-in function \function{pow()}\bifuncindex{pow}. Returns +\NULL{} on failure. This is the equivalent of the Python expression \samp{pow(\var{o1}, \var{o2}, \var{o3})}, where \var{o3} is optional. If \var{o3} is to be ignored, pass \code{Py_None} in its place. \end{cfuncdesc} |