Document new builtin buffer(). Greg Stein.

This commit is contained in:
Guido van Rossum 1999-03-19 19:10:14 +00:00
parent 36561c5de4
commit 8be229650d
1 changed files with 10 additions and 0 deletions

View File

@ -81,6 +81,16 @@ dictionary whose keys are strings. It specifies keyword arguments to
be added to the end of the the argument list. be added to the end of the the argument list.
\end{funcdesc} \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} \begin{funcdesc}{callable}{object}
Return true if the \var{object} argument appears callable, false if Return true if the \var{object} argument appears callable, false if
not. If this returns true, it is still possible that a call fails, not. If this returns true, it is still possible that a call fails,