summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-09-10 22:04:45 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-09-10 22:04:45 (GMT)
commit05e344954de5f4e55eb49dc44b0f8e1ec272a06c (patch)
tree85368f03ea1781b7669c3ebb94a5e40d57e163aa /Misc
parent4dd3a50ca480eef7bd898cfbfef8377231e18ae9 (diff)
downloadcpython-05e344954de5f4e55eb49dc44b0f8e1ec272a06c.zip
cpython-05e344954de5f4e55eb49dc44b0f8e1ec272a06c.tar.gz
cpython-05e344954de5f4e55eb49dc44b0f8e1ec272a06c.tar.bz2
#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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS8
1 files changed, 8 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 4696a80..b9ec0e1 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,14 @@ What's New in Python 2.6 release candidate 1?
Core and Builtins
-----------------
+- Issue #3743: In a few places, PY_FORMAT_SIZE_T was incorrectly used with
+ PyString_FromFormat or PyErr_Format to display size_t values. The macro
+ PY_FORMAT_SIZE_T is designed to select the correct format for the OS
+ ``printf`` function, whereas PyString_FromFormat has an independent
+ implementation and uses "%zd" on all platforms for size_t values.
+ This makes a difference on win64, where ``printf`` needs "%Id" to display
+ 64bit values.
+
- Issue #3634: _weakref.ref(Exception).__init__() gave invalid return value on
error.