getting the size of an object

Simon Brunning simon at
Mon Jun 25 21:26:22 CEST 2007

On 6/18/07, filox <filox_realmmakniovo at> wrote:
> is there a way to find out the size of an object in Python? e.g., how could
> i get the size of a list or a tuple?

mxTools includes a sizeof() function. Never used it myself, but MAL
isn't notorious for getting things wrong, so I'm sure it does what it
says on the tin.

Simon B.
simon at
GTalk: simon.brunning | MSN: small_values | Yahoo: smallvalues

More information about the Python-list mailing list