This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients christian.heimes, gvanrossum, mark.dickinson, tim.peters, vstinner
Date 2008-11-04.17:27:39
SpamBayes Score 8.88428e-12
Marked as misclassified No
Message-id <1225819678.01.0.258276838713.issue1814@psf.upfronthosting.co.za>
In-reply-to
Content
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 :-)
History
Date User Action Args
2008-11-04 17:27:59vstinnersetrecipients: + vstinner, gvanrossum, tim.peters, mark.dickinson, christian.heimes
2008-11-04 17:27:58vstinnersetmessageid: <1225819678.01.0.258276838713.issue1814@psf.upfronthosting.co.za>
2008-11-04 17:27:57vstinnerlinkissue1814 messages
2008-11-04 17:27:56vstinnercreate