On Wed, Oct 6, 2010 at 2:50 PM, Emile van Sebille <[email protected]> wrote:
> On 10/6/2010 9:25 AM Eduardo Vieira said...
> <snip>
>
>
> Of course this solution is simpler:
>> extracted = a[a.index("i")+1:]
>> But I didn't want to build a list in memory with "readlines()" in the
>> case of a file.
>>
>
> This is what I do unless the files are _really big_
>
> For-me-really-big-is-over-200Mb-ish-ly y'rs,
>
> Emile
>
> Why not loop with readline() and then the slice. That way only one line at
> time in memory
>
--
Joel Goldstick
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor