From: David Alan Black Date: 2004-04-23T23:59:07+09:00 Subject: Re: [NEWBIE] Extract all occurences from a text Hi -- Kristof Bastiaensen writes: > On Fri, 23 Apr 2004 05:08:00 -0700, David Alan Black wrote: > > > Or even more simply: > > > > lines = open(filename).grep(regex) > > > > doesn't that leave the file open? Sigh -- yes. That's a recurrent mental glitch I've got. David -- David A. Black dblack@wobblini.net