summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libfuncs.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-03-19 19:10:14 (GMT)
committerGuido van Rossum <guido@python.org>1999-03-19 19:10:14 (GMT)
commit8be229650dd59c06c369e3ccb5394f9243f78501 (patch)
tree862a9014e7eab5697de1c0b6f873d6e9e5578bef /Doc/lib/libfuncs.tex
parent36561c5de421686ace502608ae75a816242ff5b3 (diff)
downloadcpython-8be229650dd59c06c369e3ccb5394f9243f78501.zip
cpython-8be229650dd59c06c369e3ccb5394f9243f78501.tar.gz
cpython-8be229650dd59c06c369e3ccb5394f9243f78501.tar.bz2
Document new builtin buffer(). Greg Stein.
Diffstat (limited to 'Doc/lib/libfuncs.tex')
-rw-r--r--Doc/lib/libfuncs.tex10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index 210fec4..5870978 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -81,6 +81,16 @@ dictionary whose keys are strings. It specifies keyword arguments to
be added to the end of the the argument list.
\end{funcdesc}
+\begin{funcdesc}{buffer}{object\optional{, offset\optional{, size}}}
+The \var{object} argument must be an object that supports the
+buffer call interface (such as strings, arrays, and buffers). A new
+buffer object will be created which references the \var{object} argument.
+The buffer object will be a slice from the beginning of \var{object}
+(or from the specified \var{offset}). The slice will extend to the
+end of \var{object} (or will have a length given by the \var{size}
+argument).
+\end{funcdesc}
+
\begin{funcdesc}{callable}{object}
Return true if the \var{object} argument appears callable, false if
not. If this returns true, it is still possible that a call fails,