diff options
author | Georg Brandl <georg@python.org> | 2007-01-17 21:20:01 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-01-17 21:20:01 (GMT) |
commit | eb68188a0d79979d2b41ffaac25b5059a85fa1d1 (patch) | |
tree | 3fe2ea3e7add3d22f34cdf71d1039f5bd0a6910e /Doc/api | |
parent | c3df1b1392e54e74bfc4c12d04e5b5d12558e9be (diff) | |
download | cpython-eb68188a0d79979d2b41ffaac25b5059a85fa1d1.zip cpython-eb68188a0d79979d2b41ffaac25b5059a85fa1d1.tar.gz cpython-eb68188a0d79979d2b41ffaac25b5059a85fa1d1.tar.bz2 |
Bug #1629125: fix wrong data type (int -> Py_ssize_t) in PyDict_Next docs.
(backport from rev. 53477)
Diffstat (limited to 'Doc/api')
-rw-r--r-- | Doc/api/concrete.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex index 97ef134..e1f3e9a 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; |