[Python-checkins] r53478 - in python/branches/release25-maint: Doc/api/concrete.tex Misc/NEWS

georg.brandl python-checkins at python.org
Wed Jan 17 22:20:02 CET 2007


Author: georg.brandl
Date: Wed Jan 17 22:20:01 2007
New Revision: 53478

Modified:
   python/branches/release25-maint/Doc/api/concrete.tex
   python/branches/release25-maint/Misc/NEWS
Log:
Bug #1629125: fix wrong data type (int -> Py_ssize_t) in PyDict_Next docs.
 (backport from rev. 53477)

Modified: python/branches/release25-maint/Doc/api/concrete.tex
==============================================================================
--- python/branches/release25-maint/Doc/api/concrete.tex	(original)
+++ python/branches/release25-maint/Doc/api/concrete.tex	Wed Jan 17 22:20:01 2007
@@ -2082,7 +2082,7 @@
 
 \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 @@
 
 \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;

Modified: python/branches/release25-maint/Misc/NEWS
==============================================================================
--- python/branches/release25-maint/Misc/NEWS	(original)
+++ python/branches/release25-maint/Misc/NEWS	Wed Jan 17 22:20:01 2007
@@ -383,6 +383,9 @@
 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


More information about the Python-checkins mailing list