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

PySizeof: almost useful

2006-02-10 Thread Ian Leitch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi list, I'm writing a little module to calculate the size of given objects, I just need a few little pointers to get the thing into a useful shape. Code here: http://dev.gentoo.org/~port001/Code/PySizeof/ The points I'm confused about are: 1. My m