diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-04-15 21:42:42 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-04-15 21:42:42 (GMT) |
commit | 7ab6be216af6fccae655bd5402ae0ad22447f37a (patch) | |
tree | 22503e2e936f131380051209bb1905c8d9541649 /Misc | |
parent | 32dde22186efbbfcfb275ac9542b3e62a9b5cf1b (diff) | |
download | cpython-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/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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. |