Generating a large random string

Josiah Carlson jcarlson at nospam.uci.edu
Fri Feb 20 12:09:12 EST 2004


> This works fine for strings up to 10 MB, after that you might want to
> consider stashing your data to disk and reading/writing in chunks.

Or he could use mmap.  It handles all of that for you, is mutable, and 
can be used as a replacement for strings in most places.

  - Josiah



More information about the Python-list mailing list