Method much slower than function?

Paul Rubin http
Thu Jun 14 01:10:41 EDT 2007


"sjdevnull at yahoo.com" <sjdevnull at yahoo.com> writes:
> take virtually the same amount of time on my machine (2.5), and the
> non-join version is clearer, IMO.  I'd still use join in case I wind
> up running under an older Python, but it's probably not a big issue here.

You should not rely on using 2.5 or even on that optimization staying in
CPython.  Best is to use StringIO or something comparable.



More information about the Python-list mailing list