shuffle the lines of a large file

Heiko Wundram modelnine at
Mon Mar 7 15:27:11 CET 2005

Replying to oneself is bad, but although the program works, I never intended 
to use a shelve to store the data. Better to use anydbm.

So, just replace:

import shelve


import anydbm


lineindex ="test.idx")


lineindex ="test.idx","c")

Keep the rest as is.

--- Heiko.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <>

More information about the Python-list mailing list