creating really big lists
Aahz
aahz at pythoncraft.com
Wed Sep 5 08:44:44 EDT 2007
In article <1188985838.661821.41530 at k79g2000hse.googlegroups.com>,
Dr Mephesto <dnhkng at googlemail.com> wrote:
>
>I would like to create a pretty big list of lists; a list 3,000,000
>long, each entry containing 5 empty lists. My application will append
>data each of the 5 sublists, so they will be of varying lengths (so no
>arrays!).
Why do you want to pre-create this? Why not just create the big list and
sublists as you append data to the sublists?
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"Many customs in this life persist because they ease friction and promote
productivity as a result of universal agreement, and whether they are
precisely the optimal choices is much less important." --Henry Spencer
http://www.lysator.liu.se/c/ten-commandments.html
More information about the Python-list
mailing list