Commit 94ead57d authored by Fred Drake's avatar Fred Drake

Added version annotations, remove hard tabs.

parent 9f64caaf
...@@ -868,7 +868,7 @@ else { ...@@ -868,7 +868,7 @@ else {
/* continue doing useful work */ /* continue doing useful work */
} }
\section{Buffer Protocol \label{buffer}} \section{Buffer Protocol \label{abstract-buffer}}
\begin{cfuncdesc}{int}{PyObject_AsCharBuffer}{PyObject *obj, \begin{cfuncdesc}{int}{PyObject_AsCharBuffer}{PyObject *obj,
const char **buffer, const char **buffer,
...@@ -878,6 +878,7 @@ else { ...@@ -878,6 +878,7 @@ else {
character buffer interface. On success, returns \code{1}, sets character buffer interface. On success, returns \code{1}, sets
\var{buffer} to the memory location and \var{buffer} to the buffer \var{buffer} to the memory location and \var{buffer} to the buffer
length. Returns \code{0} and sets a \exception{TypeError} on error. length. Returns \code{0} and sets a \exception{TypeError} on error.
\versionadded{1.6}
\end{cfuncdesc} \end{cfuncdesc}
\begin{cfuncdesc}{int}{PyObject_AsReadBuffer}{PyObject *obj, \begin{cfuncdesc}{int}{PyObject_AsReadBuffer}{PyObject *obj,
...@@ -889,11 +890,13 @@ else { ...@@ -889,11 +890,13 @@ else {
\code{1}, sets \var{buffer} to the memory location and \var{buffer} \code{1}, sets \var{buffer} to the memory location and \var{buffer}
to the buffer length. Returns \code{0} and sets a to the buffer length. Returns \code{0} and sets a
\exception{TypeError} on error. \exception{TypeError} on error.
\versionadded{1.6}
\end{cfuncdesc} \end{cfuncdesc}
\begin{cfuncdesc}{int}{PyObject_CheckReadBuffer}{PyObject *o} \begin{cfuncdesc}{int}{PyObject_CheckReadBuffer}{PyObject *o}
Returns \code{1} if \var{o} supports the single-segment readable Returns \code{1} if \var{o} supports the single-segment readable
buffer interface. Otherwise returns \code{0}. buffer interface. Otherwise returns \code{0}.
\versionadded{2.2}
\enc{cfuncdesc} \enc{cfuncdesc}
\begin{cfuncdesc}{int}{PyObject_AsWriteBuffer}{PyObject *obj, \begin{cfuncdesc}{int}{PyObject_AsWriteBuffer}{PyObject *obj,
...@@ -904,6 +907,7 @@ else { ...@@ -904,6 +907,7 @@ else {
interface. On success, returns \code{1}, sets \var{buffer} to the interface. On success, returns \code{1}, sets \var{buffer} to the
memory location and \var{buffer} to the buffer length. Returns memory location and \var{buffer} to the buffer length. Returns
\code{0} and sets a \exception{TypeError} on error. \code{0} and sets a \exception{TypeError} on error.
\versionadded{1.6}
\end{cfuncdesc} \end{cfuncdesc}
\end{verbatim} \end{verbatim}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment