[Tutor] Fastest way to iterate through a file
elis aeris
hunter92383 at gmail.com
Mon Jul 2 01:13:38 CEST 2007
in that case, can we talk about what this is?
import array
def f7(list):
return array.array('B', list).tostring()
f7([97, 98, 99])
Out[6]:'abc'
It's only one line, and it's faster than for(), getting through this one
might just end my quest for
optimized python source code. (then i ll begin the hacking on the psycho and
things ...)
so, array is a module, and then from that, a function called array is
called, and then
tostring,
ugh,
what does it mean ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070701/c8e84452/attachment.html
More information about the Tutor
mailing list