summaryrefslogtreecommitdiffstats
path: root/Doc/api/abstract.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-12-26 16:53:48 (GMT)
committerFred Drake <fdrake@acm.org>2001-12-26 16:53:48 (GMT)
commit8b8fe288b34c590d44d03315e3b9ccf2468c777c (patch)
treea26f4ae44744f4a00fe0bc3560c17de7f09f0ff7 /Doc/api/abstract.tex
parent10a3bb53a868a5f5b08338fc7c3487d955220488 (diff)
downloadcpython-8b8fe288b34c590d44d03315e3b9ccf2468c777c.zip
cpython-8b8fe288b34c590d44d03315e3b9ccf2468c777c.tar.gz
cpython-8b8fe288b34c590d44d03315e3b9ccf2468c777c.tar.bz2
Close an improperly-closed verbatim environment.
This closes SF patch #496215. Add a little more detail to the example that had not been closed. Bugfix: this should be made part of 2.2.1.
Diffstat (limited to 'Doc/api/abstract.tex')
-rw-r--r--Doc/api/abstract.tex9
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/api/abstract.tex b/Doc/api/abstract.tex
index 0dca799..af49611 100644
--- a/Doc/api/abstract.tex
+++ b/Doc/api/abstract.tex
@@ -860,6 +860,9 @@ PyObject *item;
while (item = PyIter_Next(iter)) {
/* do something with item */
+ ...
+ /* release reference when done */
+ Py_DECREF(item);
}
if (PyErr_Occurred()) {
/* propogate error */
@@ -867,6 +870,8 @@ if (PyErr_Occurred()) {
else {
/* continue doing useful work */
}
+\end{verbatim}
+
\section{Buffer Protocol \label{abstract-buffer}}
@@ -897,7 +902,7 @@ else {
Returns \code{1} if \var{o} supports the single-segment readable
buffer interface. Otherwise returns \code{0}.
\versionadded{2.2}
-\enc{cfuncdesc}
+\end{cfuncdesc}
\begin{cfuncdesc}{int}{PyObject_AsWriteBuffer}{PyObject *obj,
const char **buffer,
@@ -909,5 +914,3 @@ else {
\code{0} and sets a \exception{TypeError} on error.
\versionadded{1.6}
\end{cfuncdesc}
-
-\end{verbatim}