<br><br><div class="gmail_quote">On Wed, Oct 6, 2010 at 2:50 PM, Emile van Sebille <span dir="ltr">&lt;<a href="mailto:emile@fenx.com">emile@fenx.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On 10/6/2010 9:25 AM Eduardo Vieira said...<br>
&lt;snip&gt;<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Of course this solution is simpler:<br>
extracted = a[a.index(&quot;i&quot;)+1:]<br>
But I didn&#39;t want to build a list in memory with &quot;readlines()&quot; in the<br>
case of a file.<br>
</blockquote>
<br></div>
This is what I do unless the files are _really big_<br>
<br>
For-me-really-big-is-over-200Mb-ish-ly y&#39;rs,<br><font color="#888888">
<br>
Emile</font><div><div></div><div class="h5"><br>Why not loop with readline() and then the slice.  That way only one line at time in memory<br></div></div></blockquote></div>-- <br>Joel Goldstick<br><br>