mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
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. ........
This commit is contained in:
parent
9aa4299882
commit
245c70b12c
4 changed files with 5 additions and 6 deletions
|
@ -671,7 +671,7 @@ deque_repr(PyObject *deque)
|
|||
}
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue