Method much slower than function?

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Thu Jun 14 02:51:03 EDT 2007


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)



More information about the Python-list mailing list