[issue1814] Victor Stinner's GMP patch for longs
STINNER Victor
report at bugs.python.org
Tue Nov 4 18:27:58 CET 2008
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Updated patch, changes:
- fix mashal module
- fix all conversion from/to small integer (long, unsigned long, long
long, unsigned long long, size_t, ssize_t)
- create numbits() method for the long type (see also issue #3439)
- catch memory allocation failure
- fix many other bugs to fix most tests
Failing tests:
- decimal: long_hash() is broken (doesn't use MSB)
- io, pickle, pickletools, sqlite, tarfile: null byte in argument for
int()
- random: use old files from pickle whih contains '2147483648L\n'
(trailing L)
- sys: sizeof is invalid
To do:
- raise OverflowError in numbits() for integer 2**(2**k) where 2**k
doesn't fit in an integer
- fix last tests
This version is slower than previous version, but it has less bugs :-)
Added file: http://bugs.python.org/file11937/py3k-long_gmp-v11.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1814>
_______________________________________
More information about the Python-bugs-list
mailing list