Memory Allocation?

Gerrit Holl gerrit at nl.linux.org
Mon Feb 7 04:55:47 EST 2005


Chris S. wrote:
> Is it possible to determine how much memory is allocated by an arbitrary 
> Python object? There doesn't seem to be anything in the docs about this, 
> but considering that Python manages memory allocation, why would such a 
> module be more difficult to design than say, the GC?

Why do you want it?

regards,
Gerrit.

-- 
In the councils of government, we must guard against the acquisition of
unwarranted influence, whether sought or unsought, by the
military-industrial complex. The potential for the disastrous rise of
misplaced power exists and will persist.
    -Dwight David Eisenhower, January 17, 1961



More information about the Python-list mailing list