summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2008-04-15 21:42:42 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2008-04-15 21:42:42 (GMT)
commit7ab6be216af6fccae655bd5402ae0ad22447f37a (patch)
tree22503e2e936f131380051209bb1905c8d9541649 /Misc
parent32dde22186efbbfcfb275ac9542b3e62a9b5cf1b (diff)
downloadcpython-7ab6be216af6fccae655bd5402ae0ad22447f37a.zip
cpython-7ab6be216af6fccae655bd5402ae0ad22447f37a.tar.gz
cpython-7ab6be216af6fccae655bd5402ae0ad22447f37a.tar.bz2
PyLong_FromSsize_t was incorrect when sizeof(size_t) > sizeof(long);
rewrite it so that it doesn't care about relative sizes of size_t, long and long long. The rewrite is modeled on PyLong_FromLong, instead of using PyLong_FromByteArray; this makes the algorithm simpler and more direct, and possibly also slightly faster.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 58524ee..7a8744f 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,9 @@ What's New in Python 3.0a5?
Core and Builtins
-----------------
+- Fix misbehaviour of PyLong_FromSsize_t on systems where sizeof(size_t) >
+ sizeof(long).
+
- Issue #2221: Corrected a SystemError "error return without exception set",
when the code executed by exec() raises an exception, and sys.stdout.flush()
also raises an error.