[Python-Dev] Re: Optional separatorargument for
file.writelines()and StringIO.writelines()
Raymond Hettinger
python at rcn.com
Fri Feb 27 04:12:48 EST 2004
[Bob Ippolito]
> Currently, it seems that ''.join is faster than cStringIO.writelines
> anyway, even if you just pass it a big list.
I suspect something wrong with your timing suite. Under the hood,
cStringIO.writelines() actually is ''.join(). It appears that the
whole comparison is circular.
Raymond Hettinger
#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################
More information about the Python-Dev
mailing list