Mercurial > cpython-lru_cache-weakref
diff Modules/_collectionsmodule.c @ 49139:6ae2d4b507a2
Merged revisions 66377 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66377 | amaury.forgeotdarc | 2008-09-11 00:04:45 +0200 (jeu., 11 sept. 2008) | 8 lines
#3743: PY_FORMAT_SIZE_T is designed for the OS "printf" functions, not for
PyString_FromFormat which has an independent implementation, and uses "%zd".
This makes a difference on win64, where printf needs "%Id" to display
64bit values. For example, queue.__repr__ was incorrect.
Reviewed by Martin von Loewis.
........
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Wed, 10 Sep 2008 22:24:24 +0000 |
| parents | 82f73b0b5a30 |
| children | 711390d4ac21 |
line wrap: on
line diff
--- a/Modules/_collectionsmodule.c Wed Sep 10 21:57:34 2008 +0000 +++ b/Modules/_collectionsmodule.c Wed Sep 10 22:24:24 2008 +0000 @@ -671,7 +671,7 @@ } if (((dequeobject *)deque)->maxlen != -1) - result = PyUnicode_FromFormat("deque(%R, maxlen=%" PY_FORMAT_SIZE_T "d)", + result = PyUnicode_FromFormat("deque(%R, maxlen=%zd)", aslist, ((dequeobject *)deque)->maxlen); else result = PyUnicode_FromFormat("deque(%R)", aslist);
