Getting references to obect instances into a list

Simon Brunning simon at
Wed Aug 27 17:25:26 CEST 2008

2008/8/27 parent.eric.3 at <parent.eric.3 at>:
> I would like to get the references to objets to put in a huge data
> structure (like a list or a heap for example). My objective is to use
> as less memory as possible as I have to manage huge amount of entries
> in my data structure and need to use the same elsewhere.

A list only *ever* contains references to objects, so there's nothing
special to do.

I do strongly recommend this article:

Simon B.

More information about the Python-list mailing list