Re: how to create a big list of list

2009-06-05 Thread greg
command@alexbbs.twbbs.org wrote: i have try [ [] for x in xrange(2**25) ] Are you really going to be adding data to all of those sublists? If you're only using them sparsely, it may be better to use a dictionary in place of the top level list, and only add sublists as and when necessary.

how to create a big list of list

2009-06-05 Thread ���m�ۤv...@����
if i want to create a list of list which size is 2**25 how should i do it? i have try [ [] for x in xrange(2**25) ] but it take too long to initial the list is there any suggestion? Thanks a lot! -- ※Post by command from 59-124-255-226.HINET-IP. 老鼠ç

Re: how to create a big list of list

2009-06-05 Thread Ben Finney
command@alexbbs.twbbs.org (§ä´m¦Û¤vª�...@¤ù¤Ñ) writes: > if i want to create a list of list which size is 2**25 > > how should i do it? > > i have try [ [] for x in xrange(2**25) ] > > but it take too long to initial the list > > is there any suggestion? What is it you want t