Method much slower than function?

Neil Cerutti horpner at yahoo.com
Thu Jun 14 08:51:15 EDT 2007


On 2007-06-14, Bruno Desthuilliers
<bruno.42.desthuilliers at wtf.websiteburo.oops.com> wrote:
> Neil Cerutti a écrit :
> (snip)
>> class bar:
>>     def readgenome(self, filehandle):
>>         self.s = ''.join(line.strip() for line in filehandle)
>
>=>
>            self.s = ''.join(line.strip() for line in filehandle if not 
> '>' in line)

Thanks for that correction.

-- 
Neil Cerutti
I don't know what to expect right now, but we as players have to do what we've
got to do to make sure that the pot is spread equally. --Jim Jackson



More information about the Python-list mailing list