creating really big lists

Aahz aahz at
Wed Sep 5 14:44:44 CEST 2007

In article <1188985838.661821.41530 at>,
Dr Mephesto  <dnhkng at> 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

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           <*>

"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

More information about the Python-list mailing list