Ian Leitch <[EMAIL PROTECTED]> wrote: ... > 2. I'm at a loss as how to calculate the size of a long object -- any tips?
#include "longintrepr.h" (from the Python sources). Then, given a PyLongObject *l, abs(l->ob_size) is the number of "digits", each taking SHIFT bits. > Many thanks to anyone bored enough to review this code. Sorry, I don't have the time, but I hope the above tip can be useful. Alex -- http://mail.python.org/mailman/listinfo/python-list