diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2008-03-17 18:48:05 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2008-03-17 18:48:05 (GMT) |
commit | f48f9d38c02ef914194eeeeb6cdae770e218af00 (patch) | |
tree | 66b91bf167ab2d565d9da953376e038b3380796b /Misc | |
parent | 33451d8ab143fb89374673d3aa751910c5b1031e (diff) | |
download | cpython-f48f9d38c02ef914194eeeeb6cdae770e218af00.zip cpython-f48f9d38c02ef914194eeeeb6cdae770e218af00.tar.gz cpython-f48f9d38c02ef914194eeeeb6cdae770e218af00.tar.bz2 |
Force zlib.crc32 and zlib.adler32 to return a signed integer on all platforms
regardless of the native sizeof(long) used in the integer object.
This somewhat odd behavior of returning a signed is maintained in 2.x for
compatibility reasons of always returning an integer rather than a long object.
Fixes Issue1202 for Python 2.6
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -27,6 +27,10 @@ Core and builtins Library ------- +- Issue #1202: zlib.crc32 and zlib.adler32 no longer return different values + on 32-bit vs. 64-bit python interpreters. Both were correct, but they now + both return a signed integer object for consistency. + - Issue #1158: add %f format (fractions of a second represented as microseconds) to datetime objects. Understood by both strptime and strftime. |