any better code to initalize a list of lists?

John rds1226 at sh163.net
Fri Mar 9 02:11:26 CET 2007


For my code of radix sort, I need to initialize 256 buckets. My code looks a 
little clumsy:

radix=[[]]
for i in range(255):
    radix.append([])

any better code to initalize this list? 





More information about the Python-list mailing list