➜

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.

作者 vstinner
收信人 christian.heimes, gvanrossum, mark.dickinson, tim.peters, vstinner
日期 2008-11-04.01:00:53
SpamBayes Score 4.107953e-11
Marked as misclassified 否
Message-id <1225760479.66.0.27481862549.issue1814@psf.upfronthosting.co.za>
In-reply-to
内容
I updated my patch against Python3 trunk. I fixed my patch to pass 
most long and struct tests:
 - fix byte array import/export
 - check for overflow
 - compute exponent in conversion to a float (use PyLong_SHIFT=1)
 - fix formating to support 0b, 0o, 0x or custom base (XX#...)

You have to add "-lgmp" to LIBS variable of the Makefile.

There are still some issues about (unsigned) long long: overflow is 
not detected. mashal is broken for long.

diffstat py3k-long_gmp-v3.patch
 Include/longintrepr.h |   49
 Include/longobject.h  |    3
 Modules/mathmodule.c  |    6
 Objects/boolobject.c  |   12
 Objects/longobject.c  | 3053 
+++++---------------------------------------------
 Python/marshal.c      |    9
 Python/mystrtoul.c    |   26
 7 files changed, 376 insertions(+), 2782 deletions(-)
历史
日期 用户 动作 参数
2008-11-04 01:01:21vstinner修改recipients: + vstinner, gvanrossum, tim.peters, mark.dickinson, christian.heimes
2008-11-04 01:01:19vstinner修改messageid: <1225760479.66.0.27481862549.issue1814@psf.upfronthosting.co.za>
2008-11-04 01:01:17vstinner链接issue1814 messages
2008-11-04 01:01:16vstinner创建