python vs. grep

Ricardo Aráoz ricaraoz at gmail.com
Wed May 14 01:08:51 CEST 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