[issue3743] PY_FORMAT_SIZE_T is not for PyString_FromFormat
Amaury Forgeot d'Arc
report at bugs.python.org
Sun Aug 31 22:40:38 CEST 2008
New submission from Amaury Forgeot d'Arc <amauryfa at gmail.com>:
test_deque fails on win64 buildbot:
AssertionError: 'deque([7, 8, 9], maxlen=%Id)' != 'deque([7, 8, 9],
maxlen=3)'
A PY_FORMAT_SIZE_T format is incorrectly used with PyUnicode_FromFormat.
The correct format here is "%zd". PY_FORMAT_SIZE_T should be reserved
for the OS printf routines, PyOS_snprintf, PySys_WriteStderr.
The attached patch replaces
"%" PY_FORMAT_SIZE_T "%d"
with
"%zd"
----------
files: fromformat.patch
keywords: patch
messages: 72212
nosy: amaury.forgeotdarc
severity: normal
status: open
title: PY_FORMAT_SIZE_T is not for PyString_FromFormat
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file11320/fromformat.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3743>
_______________________________________
More information about the Python-bugs-list
mailing list