How much memory used by a name

Bernard Lebel 3dbernard at gmail.com
Wed Feb 14 10:49:24 EST 2007


Hello,

I would like to know if there is a way to know how much memory (bytes,
kilobytes, megabytes, etc) a name is using.

More specifically, I have this list of strings that I want to write to
a file as lines.
This list grows througout the script execution, and toward the end,
the file is written.

However I would like to know how much memory, before writing to the
file, is this list using. Is it possible at all?


Thanks
Bernard



More information about the Python-list mailing list