From b26b1c6d6b34d33ca62a66f9936d97f5340cdfda Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 17 Jan 2007 21:19:58 +0000 Subject: [PATCH] Bug #1629125: fix wrong data type (int -> Py_ssize_t) in PyDict_Next docs. --- Doc/api/concrete.tex | 4 ++-- Misc/NEWS | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex index 33b04d48616..e2d3e52f534 100644 --- a/Doc/api/concrete.tex +++ b/Doc/api/concrete.tex @@ -2082,7 +2082,7 @@ format. \begin{verbatim} PyObject *key, *value; -int pos = 0; +Py_ssize_t pos = 0; while (PyDict_Next(self->dict, &pos, &key, &value)) { /* do something interesting with the values... */ @@ -2097,7 +2097,7 @@ while (PyDict_Next(self->dict, &pos, &key, &value)) { \begin{verbatim} PyObject *key, *value; -int pos = 0; +Py_ssize_t pos = 0; while (PyDict_Next(self->dict, &pos, &key, &value)) { int i = PyInt_AS_LONG(value) + 1; diff --git a/Misc/NEWS b/Misc/NEWS index 3d742f577aa..cf9133e9249 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -403,6 +403,9 @@ Tools Documentation ------------- +- Bug #1629125: fix wrong data type (int -> Py_ssize_t) in PyDict_Next + docs. + - Bug #1565919: document set types in the Language Reference. - Bug #1546052: clarify that PyString_FromString(AndSize) copies the