python vs. grep
Ricardo Aráoz
ricaraoz at gmail.com
Tue May 13 19:08:51 EDT 2008
Ville M. Vainio wrote:
> Ricardo Aráoz <ricaraoz at gmail.com> writes:
>
>> The easy/simple (too easy/simple?) way I see out of it is to read THE
>> WHOLE file into memory and don't worry. But what if the file is too
>
> The easiest and simplest approach is often the best with
> Python.
Keep forgetting that!
>
> If the file is too big, you might want to look up mmap:
>
> http://effbot.org/librarybook/mmap.htm
Thanks!
More information about the Python-list
mailing list