[issue5657] bad repr of itertools.count object with negative value on OS X 10.4 with 10.5 build

Ronald Oussoren report at bugs.python.org
Thu Apr 2 12:30:22 CEST 2009


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

Raymond: My guess is that this is caused because the binary was build on 
OSX 10.5, where 'printf("%zd")' works file for negative numbers, and the 
tests was run on OSX 10.4, where the same printf statement doesn't work 
correctly.

I'll experiment with a fix for this over the weekend. The fix I'm thinking 
of right now is to patch either configure.in or pymacconfig.h to make sure 
that PY_FORMAT_SIZE_T is overridden when building a binary that has a 
DEPLOYMENT_TARGET that is smaller than 10.5.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5657>
_______________________________________


More information about the Python-bugs-list mailing list