How much memory used by a name

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Wed Feb 14 15:51:19 EST 2007


Bernard Lebel a écrit :
> 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.

Do you really need to first grow the list then write it ?




More information about the Python-list mailing list