Commit b26b1c6d authored by Georg Brandl's avatar Georg Brandl

Bug #1629125: fix wrong data type (int -> Py_ssize_t) in PyDict_Next docs.

parent 45dc1f2f
...@@ -2082,7 +2082,7 @@ format. ...@@ -2082,7 +2082,7 @@ format.
\begin{verbatim} \begin{verbatim}
PyObject *key, *value; PyObject *key, *value;
int pos = 0; Py_ssize_t pos = 0;
while (PyDict_Next(self->dict, &pos, &key, &value)) { while (PyDict_Next(self->dict, &pos, &key, &value)) {
/* do something interesting with the values... */ /* do something interesting with the values... */
...@@ -2097,7 +2097,7 @@ while (PyDict_Next(self->dict, &pos, &key, &value)) { ...@@ -2097,7 +2097,7 @@ while (PyDict_Next(self->dict, &pos, &key, &value)) {
\begin{verbatim} \begin{verbatim}
PyObject *key, *value; PyObject *key, *value;
int pos = 0; Py_ssize_t pos = 0;
while (PyDict_Next(self->dict, &pos, &key, &value)) { while (PyDict_Next(self->dict, &pos, &key, &value)) {
int i = PyInt_AS_LONG(value) + 1; int i = PyInt_AS_LONG(value) + 1;
......
...@@ -403,6 +403,9 @@ Tools ...@@ -403,6 +403,9 @@ Tools
Documentation 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 #1565919: document set types in the Language Reference.
- Bug #1546052: clarify that PyString_FromString(AndSize) copies the - Bug #1546052: clarify that PyString_FromString(AndSize) copies the
......
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