Getting references to obect instances into a list

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


2008/8/27 parent.eric.3 at gmail.com <parent.eric.3 at gmail.com>:
> 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:
<http://effbot.org/zone/python-objects.htm>.

-- 
Cheers,
Simon B.



More information about the Python-list mailing list