Message75697
Another thought: macros that are going to be used elsewhere in Python
(like the way you're using PyLong_SIGN in mathmodule.c) would probably
be better off in longobject.h. The fewer places there are that have to
include longintrepr.h, the easier it is to mess with the internal
representation.
It's quite tempting to 'fix' _PyLong_AsScaledDouble to return e as the
number of bits, rather than the number of digits; then mathmodule.c
wouldn't have to include longintrepr.h at all.
(And if marshal.c were also changed, to read and write integers as byte
strings, we wouldn't need longintrepr.h anywhere any more!) |
|
Date |
User |
Action |
Args |
2008-11-10 13:48:48 | mark.dickinson | set | recipients:
+ mark.dickinson, gregory.p.smith, vstinner |
2008-11-10 13:48:48 | mark.dickinson | set | messageid: <1226324928.35.0.481351475791.issue4294@psf.upfronthosting.co.za> |
2008-11-10 13:48:47 | mark.dickinson | link | issue4294 messages |
2008-11-10 13:48:47 | mark.dickinson | create | |
|