Re: PySizeof: almost useful

2006-02-12 Thread MrJean1
Check the sizeof() method in the mxTools package from eGenix: /Jean Brouwers -- http://mail.python.org/mailman/listinfo/python-list

Re: PySizeof: almost useful

2006-02-11 Thread Alex Martelli
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